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:
- Go to Settings > Environments in your repository (or direct link).
- Select your github-pages environment.
- Under Deployment branches, ensure that Branch and Tag protection rules include allowed tags (
- Add the pattern
v* to the allowed tags.
- Optionally, review any required reviewers or additional environment protection rules that may be blocking deployments from tags.
- Save the updated environment settings.
- Retry the deployment workflow.
Assigning: @ktn-jamf
If you need further guidance, refer to the GitHub documentation on environment protection rules.
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:
v*to the allowed tags.Assigning: @ktn-jamf
If you need further guidance, refer to the GitHub documentation on environment protection rules.