Releases: peaceiris/actions-gh-pages
v2.4.0
Release v2.4.0
New feature - Keeping existing files
New option keepFiles
by @RomanHotsiy #33 #34
By default, existing files in the publish branch are removed before adding the ones from publish dir. If you want the action to add new files but leave existing ones untouched, set the optional parameter keepFiles to true.
For example:
- name: Deploy
uses: peaceiris/actions-gh-pages@v2.4.0
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public
with:
keepFiles: true
v2.4.0-rc0
Test for #34
v2.3.2
Bugfix
v2.3.2-rc2
v2.3.2-rc1
v2.3.2-rc0
v2.3.1
v2.3.0
Release v2.3.0
New feature
Suppressing empty commits option. (#22 by @kingofzeal )
By default, a commit will always be generated and pushed to the PUBLISH_BRANCH
, even if nothing changed. If you want to suppress this behavior, set the optional parameter emptyCommits
to false
. cf. Issue #21
For example:
- name: deploy
uses: peaceiris/actions-gh-pages@v2.3.0
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public
with:
emptyCommits: false
Add workflow examples
- Repository type - User and Organization
- YAML workflow examples
- Static Site Generators with Node.js
- Gatsby
- React and Next
- Vue and Nuxt
- Static Site Generators with Python (MkDocs)
v2.2.0
Release v2.2.0 includes the following updates.
- add:
PERSONAL_TOKEN
- update: readme about PERSONAL_TOKEN`
Create a personal access token (repo
) and add it to Secrets as PERSONAL_TOKEN
, it works as well as ACTIONS_DEPLOY_KEY
.
- ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
+ PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
v2.1.0
Release v2.1.0 includes the following updates.
- change: base docker image from
ubuntu:18.04
toalpine:3.10.2