Skip to content

Releases: JamesIves/github-pages-deploy-action

3.4.6

31 Mar 14:42
Compare
Choose a tag to compare

Minor Changes

  • More publishing pipeline fixes.

3.4.5

31 Mar 14:33
Compare
Choose a tag to compare

Minor Changes

  • Made some adjustments to properly cross publish.

3.4.3

31 Mar 14:07
Compare
Choose a tag to compare

Major Changes

  • Added the ability to have just a single commit on a branch. This restores the behavior of v2 except with a toggle. To turn this on you can set SINGLE_COMMIT: true in your workflow. This will wipe any existing history you have on the branch, please proceed with caution.
  • Added a cross publishing script so the action will now publish on the GitHub registry along with the npmjs registry.
  • Changed how debugging works. Instead of DEBUG: true being passed into the action you now need to specify an environment variable called ACTIONS_STEP_DEBUG and set it to true. This is more in line with how other GitHub recommends actions handle debugging.

Minor Changes

  • Switched to using a number of helper methods provided by @actions/toolkit such as log and `debug.
  • Improved integration tests slightly.
  • Added --force flag on the branch creation command.

3.4.2

21 Mar 21:23
Compare
Choose a tag to compare

Minor Changes

  • Dependency updates galore.
  • Couple of README adjustments, including an icon! (I have a lot of spare time while in quarantine)
  • The default commit message now includes @ instead of - when referencing the SHA.
  • The console logs now match the same styling that GitHub Actions use.

Credits

Thanks to @jakejarvis and @mathiasbynens for their contributions in this release.

3.4.1

07 Mar 03:47
Compare
Choose a tag to compare

Minor Changes

  • Migrated from tslint to eslint. Version bumped to 3.4.1 due to a change in a named export: actionInterface is now ActionInterface.

3.3.2

02 Mar 14:43
Compare
Choose a tag to compare

Minor Changes

  • Removed the /lib folder from the dev branch. NPM will now build this folder prior to publishing.

3.3.1

02 Mar 14:02
Compare
Choose a tag to compare

Major Changes

import run, {
  init,
  deploy,
  generateBranch,
  actionInterface
} from "github-pages-deploy-action";

Calling the functions directly will require you to pass in an object containing the variables found in the configuration section, you'll also need to provide a workspace with a path to your project.

import run from "github-pages-deploy-action";

run({
  folder: "build",
  branch: "gh-pages",
  workspace: "src/project/location",
  accessToken: process.env["ACCESS_TOKEN"]
});

For more information regarding the action interface please click here.

  • Added the ability to specify a remote repository using the REPOSITORY_NAME option. This should be formatted like so: JamesIves/github-pages-deploy-action. This gets populated by default in the actions environment, but may need to be overwritten if you want to deploy to a different remote.

  • Improved error handling. It will now correctly provide the correct error message when the deployment fails, and will also stop early instead of running all the way through until it can't anymore.

  • By default the git commands are now hidden from the users view, and a number of console logs will instead provide the actions status. This can be overridden by applying the DEBUG flag.

Minor Changes

  • Added a number of helper functions that check the required action parameters, and suppress any sensitive information. This adds a fail safe incase either the actions environment doesn't properly hide a secret, or if the user is running the action via the node module.

  • Improved the overall number of tests.

  • Added the ability to modify the workspace path.

  • Added an .nvmrc file.

  • Updated the action.yml file with the new configuration changes.

Special Thanks

Big thank you to @XAMPPRocky for all of their help testing these changes!

3.2.4

22 Feb 14:34
Compare
Choose a tag to compare

Minor Changes

  • More bug fixes related to the npm publish command.

3.2.3

22 Feb 14:17
Compare
Choose a tag to compare

Minor Changes

  • Couple of minor changes to the workflow.

3.2.2

22 Feb 14:15
Compare
Choose a tag to compare

Minor Changes

  • Added a workflow for automatically publishing to npm.