actions-gh-pages

GitHub Actions for GitHub Pages 🚀 Deploy static files and publish your site easily. Static-Site-Generators-friendly.

MIT License

Downloads
1
Stars
4.7K
Committers
39

Bot releases are hidden (Show)

actions-gh-pages - v2.5.0-rc0

Published by peaceiris about 5 years ago

v2.5.0-rc0 for #36

actions-gh-pages - v2.4.0

Published by peaceiris about 5 years ago

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/[email protected]
  env:
    ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
    PUBLISH_BRANCH: gh-pages
    PUBLISH_DIR: ./public
  with:
    keepFiles: true
actions-gh-pages - v2.4.0-rc0

Published by peaceiris about 5 years ago

Test for #34

actions-gh-pages - v2.3.2

Published by peaceiris about 5 years ago

Bugfix

  • #28
actions-gh-pages - v2.3.2-rc2

Published by peaceiris about 5 years ago

#28

actions-gh-pages - v2.3.2-rc1

Published by peaceiris about 5 years ago

#28

actions-gh-pages - v2.3.2-rc0

Published by peaceiris about 5 years ago

#28

actions-gh-pages - v2.3.1

Published by peaceiris about 5 years ago

Release v2.3.1

Bug fix

  • Fix: git rm fails when publishing branch is empty (#24 by @blue-jam )
actions-gh-pages - v2.3.0

Published by peaceiris about 5 years ago

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/[email protected]
  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)
actions-gh-pages - v2.2.0

Published by peaceiris about 5 years ago

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 }}
actions-gh-pages - v2.1.0

Published by peaceiris about 5 years ago

Release v2.1.0 includes the following updates.

  • change: base docker image from ubuntu:18.04 to alpine:3.10.2
actions-gh-pages - v2.0.0

Published by peaceiris about 5 years ago

Release v2.0.0 includes the following updates.

  • Migrate: from v1 to GitHub Actions v2 (HCL to YAML)
  • Update: the YAML file examples (Hugo and MkDocs)
  • Add: fetch a remote branch before deploying (#7 by @MikaelSmith )
  • Add: action public docker image on Docker Hub
actions-gh-pages - v1.1.0

Published by peaceiris about 5 years ago

Release v1.1.0 (#4)

  • change: use GITHUB_TOKEN instead of ACTIONS_DEPLOY_KEY
actions-gh-pages - v1.0.1

Published by peaceiris over 5 years ago

Fix: shellcheck errors

actions-gh-pages - v1.0.0

Published by peaceiris over 5 years ago

Package Rankings
Top 19.42% on Npmjs.org
Top 0.08% on Github actions
Top 9.63% on Proxy.golang.org
Badges
Extracted from project README
license release GitHub release date CodeFactor peaceiris/actions-hugo - GitHub