GitHub Actions for GitHub Pages 🚀 Deploy static files and publish your site easily. Static-Site-Generators-friendly.
MIT License
Bot releases are visible (Hide)
Published by peaceiris about 5 years ago
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/[email protected]
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public
with:
keepFiles: true
Published by peaceiris about 5 years ago
Test for #34
Published by peaceiris about 5 years ago
Published by peaceiris about 5 years ago
#28
Published by peaceiris about 5 years ago
#28
Published by peaceiris about 5 years ago
#28
Published by peaceiris about 5 years ago
git rm
fails when publishing branch is empty (#24 by @blue-jam )Published by peaceiris about 5 years ago
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/[email protected]
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public
with:
emptyCommits: false
Published by peaceiris about 5 years ago
Release v2.2.0 includes the following updates.
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 }}
Published by peaceiris about 5 years ago
Release v2.1.0 includes the following updates.
ubuntu:18.04
to alpine:3.10.2
Published by peaceiris about 5 years ago
Release v2.0.0 includes the following updates.
Published by peaceiris about 5 years ago
Release v1.1.0 (#4)
GITHUB_TOKEN
instead of ACTIONS_DEPLOY_KEY
Published by peaceiris over 5 years ago
Fix: shellcheck errors
Published by peaceiris over 5 years ago