Minor Changes
- Adds the
CLEAN_EXCLUDE
option which allows you to preserve specified files or folders that need to preserved from a previous job run when using CLEAN
. The option needs to be formatted as an array but stored as a string due to a limitation with GitHub Actions. This can be used like so:
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BASE_BRANCH: master
BRANCH: gh-pages
FOLDER: '.build'
CLEAN: true
CLEAN_EXCLUDE: '["develop"]'