Releases: peaceiris/actions-gh-pages
GitHub Pages Action v2.7.0
Release v2.7.0
GitHub Actions for GitHub Pages Pre-release v2.7.0-1
GitHub Actions for GitHub Pages v2.7.0-0
Release v2.7.0-0 for #63
GitHub Actions for GitHub Pages v2.6.0
Release v2.6.0
New Feature
Force orphan option
From v2.6.0
, we can set the forceOrphan: true
option.
This allows you to make your publish branch with only the latest commit.
- name: Deploy
uses: peaceiris/[email protected]
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public
with:
forceOrphan: true
v2.5.1
Project settings update
v2.6.0-rc0
Pre-release for Pull Request #43
v2.5.0
New options
Deploy to external repository
By default, your files are published to the repository which is running this action. If you want to publish to another repository on GitHub, set the environment variable EXTERNAL_REPOSITORY
to <username>/<external-repository>
. This option is available from v2.5.0
.
For example:
- name: Deploy
uses: peaceiris/[email protected]
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
EXTERNAL_REPOSITORY: username/external-repository
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public
You can use ACTIONS_DEPLOY_KEY
or PERSONAL_TOKEN
. When you use ACTIONS_DEPLOY_KEY
, set your private key to the repository which includes this action and set your public key to your external repository.
Be careful, GITHUB_TOKEN
has no permission to access to external repositories.
Script mode
From v2.5.0
, we can run this action as a shell script. There is no Docker build or pull step, so it will start immediately.
ACTIONS_DEPLOY_KEY
requiresSCRIPT_MODE: true
*_TOKEN
do not requireSCRIPT_MODE
- name: Deploy
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public
SCRIPT_MODE: true
run: |
wget https://raw.githubusercontent.com/peaceiris/actions-gh-pages/v2.5.0/entrypoint.sh
bash ./entrypoint.sh
Implemented by @peaceiris #38
v2.5.0-rc2
Test for #38
v2.5.0-rc1
v2.5.0-rc1 #38
v2.5.0-rc0
v2.5.0-rc0 for #36