Skip to content

Releases: aormsby/hugo-deploy-to-pages

Bump @actions/core

28 Aug 19:03
4a8fff4
Compare
Choose a tag to compare

Security update - Bump @actions/core from 1.5.0 to 1.9.1

v2.1 - Nothing to commit no longer throws a failure

26 Nov 03:30
Compare
Choose a tag to compare

Fix: Build process no longer throws an error when there are no changes to commit. Safe exit instead. This was mainly done to prevent the whole workflow from failing.

v2 - Refactor with new release pattern

10 Oct 20:06
Compare
Choose a tag to compare

v2 is back! I don't know why it disappeared in the first place, but I took the strange opportunity to rewrite a large chunk of it and make it work better than before.

Please note that I renamed many variables in v2 to make their function more clear. I also made a wiki to go over some of the tricky setup details, so please check that out.

Improved - Build/release pattern
In v1, the action performed all of its steps on the source branch of a project. Each update, build, and push to the source branch added garbage commits to the history of what could have been a working branch for some people. Now the action builds releases on a separate branch to help clean that up.

New - TEST MODE
Test mode runs a separate set of scripts (instead of the normal action) and verifies that your setup is correct. If you use test mode you're likely to spot most problems with your action config before you run it for real.

Fixed - Git config
Previously, git config was always set by this action. Now it occurs only when the git config values haven't already been set by other workflow steps. This is to allow work with other actions and avoid setting conflicting config values. Bonus: Now you can do neat things like setting up GPG commit signing with other actions like this -- https://github.com/aormsby/Fork-Sync-With-Upstream-action/wiki/GPG-Signing (link is from another one of my actions, but you'll get the idea)

Known Issue - Can't use shallow clones
Trying to get proper merges when using shallow clones has been a huge problem. Gotta checkout with fetch-depth: '0' for this action to work properly. See Git Shallow Clone Challenge! for details, and help me figure out what to do about this!

v1.2-beta

04 Oct 18:47
b2639a3
Compare
Choose a tag to compare
  • Default values removed for input vars with required: true. These must now be set explicitly in your workflows.

    • deploy_directory - Name of Hugo build output folder (path from root directory), Hugo's default is "public"
    • build_branch - Repo branch used for site build
  • The 'deploy_branch' input var is still set required: false since some users will not deploy to submodules. However, the default value has been changed to 'main' to match Github's changes to a new repo's default branch name.

v1.1-beta

04 Oct 17:24
Compare
Choose a tag to compare

security updates - 'core' module updated to 1.2.6

v1 beta

26 Aug 03:15
37cf4d4
Compare
Choose a tag to compare

An action for Hugo websites. Build your site from whichever repo branch you choose and deploy to a GH-Pages repo. This action supports deploying to the main site repo or to a repo submodule. No extra work is needed for submodule deploys. It's intended use is to simply automate Hugo site builds.

Functional and tested, but tested in a limited capacity. Please be aware issues may arise.