Skip to content

Releases: peaceiris/actions-gh-pages

v2.4.0

24 Sep 18:01
380b190
Compare
Choose a tag to compare

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

24 Sep 17:48
Compare
Choose a tag to compare
v2.4.0-rc0 Pre-release
Pre-release

Test for #34

v2.3.2

23 Sep 05:02
8f168fe
Compare
Choose a tag to compare

v2.3.2-rc2

23 Sep 04:48
Compare
Choose a tag to compare
v2.3.2-rc2 Pre-release
Pre-release

v2.3.2-rc1

23 Sep 04:21
Compare
Choose a tag to compare
v2.3.2-rc1 Pre-release
Pre-release

v2.3.2-rc0

23 Sep 04:10
Compare
Choose a tag to compare
v2.3.2-rc0 Pre-release
Pre-release

v2.3.1

15 Sep 16:09
Compare
Choose a tag to compare

Release v2.3.1

Bug fix

  • Fix: git rm fails when publishing branch is empty (#24 by @blue-jam )

v2.3.0

14 Sep 18:55
Compare
Choose a tag to compare

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

07 Sep 19:26
b263205
Compare
Choose a tag to compare

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

05 Sep 15:34
Compare
Choose a tag to compare

Release v2.1.0 includes the following updates.

  • change: base docker image from ubuntu:18.04 to alpine:3.10.2