Skip to content

Releases: peaceiris/actions-gh-pages

GitHub Pages Action v2.7.0

24 Dec 06:03
bdedb4e
Compare
Choose a tag to compare

Release v2.7.0

  • feat: Ignore .git and .github #63
  • feat: Bumps alpine from 3.10.3 to 3.11.0 #63

cf. Comparing v2.6.0...v2.7.0 · peaceiris/actions-gh-pages

GitHub Actions for GitHub Pages Pre-release v2.7.0-1

23 Dec 03:19
Compare
Choose a tag to compare

Pre-release v2.7.0-1 for #63 and #64

GitHub Actions for GitHub Pages v2.7.0-0

22 Dec 21:50
Compare
Choose a tag to compare

Release v2.7.0-0 for #63

GitHub Actions for GitHub Pages v2.6.0

22 Dec 20:53
Compare
Choose a tag to compare

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

cf. Comparing v2.5.1...v2.6.0 · peaceiris/actions-gh-pages

v2.5.1

28 Oct 18:32
Compare
Choose a tag to compare

v2.6.0-rc0

17 Oct 12:16
Compare
Choose a tag to compare
v2.6.0-rc0 Pre-release
Pre-release

Pre-release for Pull Request #43

v2.5.0

06 Oct 14:54
855ba06
Compare
Choose a tag to compare

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.

Implemented by @skyfrk #36

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 requires SCRIPT_MODE: true
  • *_TOKEN do not require SCRIPT_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

06 Oct 14:25
Compare
Choose a tag to compare
v2.5.0-rc2 Pre-release
Pre-release

Test for #38

v2.5.0-rc1

06 Oct 11:24
Compare
Choose a tag to compare
v2.5.0-rc1 Pre-release
Pre-release

v2.5.0-rc1 #38

v2.5.0-rc0

27 Sep 06:51
Compare
Choose a tag to compare
v2.5.0-rc0 Pre-release
Pre-release

v2.5.0-rc0 for #36