Skip to content

Cannot deploy to GitHub Pages using tag 'v1.4.0' due to environment protection rules #81

@neilmartin83

Description

@neilmartin83

Note that I have run this workflow manually against main branch so the site is up to date - this is required after every release as a workaround until the below is addressed.

Problem

Attempting to deploy to GitHub Pages using the tag "v1.4.0" results in an error due to environment protection rules. The workflow is blocked and cannot be executed when triggered by a tag release.

Instructions to resolve

To allow the GitHub Actions workflow to deploy to GitHub Pages via a tag release, update the environment protection rules as follows:

  1. Go to Settings > Environments in your repository (or direct link).
  2. Select your github-pages environment.
  3. Under Deployment branches, ensure that Branch and Tag protection rules include allowed tags (
    • Add the pattern v* to the allowed tags.
  4. Optionally, review any required reviewers or additional environment protection rules that may be blocking deployments from tags.
  5. Save the updated environment settings.
  6. Retry the deployment workflow.

Assigning: @ktn-jamf

If you need further guidance, refer to the GitHub documentation on environment protection rules.

Metadata

Metadata

Assignees

Labels

github_actionsPull requests that update GitHub Actions code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions