You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to deploy to pages when the software is released. But I keep getting error saying that Branch "v1.1.2" is not allowed to deploy to github-pages due to environment protection rules.
The actions file look like:
name: Deploy Sphinx Docs to GitHub Pageson:
release:
types: [ published ]# Allows you to run this workflow manually from the Actions tabworkflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pagespermissions:
contents: readpages: writeid-token: write# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.concurrency:
group: "pages"cancel-in-progress: falsejobs:
# Build jobbuild:
runs-on: ubuntu-lateststeps:
- name: Checkoutuses: actions/checkout@v3
- name: Setup Pagesuses: actions/configure-pages@v3
- name: Setup Pythonuses: actions/setup-python@v3
- name: Install dependenciesrun: | python -m pip install --upgrade pip pip install pipenv pipenv install --dev
- name: Buildrun: | cd _docs pipenv run make html
- name: Upload artifactuses: actions/upload-pages-artifact@v1with:
path: _docs/_build/html# Deployment jobdeploy:
environment:
name: github-pagesurl: ${{ steps.deployment.outputs.page_url }}runs-on: ubuntu-latestneeds: buildsteps:
- name: Deploy to GitHub Pagesid: deploymentuses: actions/deploy-pages@v2
it works fine on main branch
The text was updated successfully, but these errors were encountered:
I am trying to deploy to pages when the software is released. But I keep getting error saying that
Branch "v1.1.2" is not allowed to deploy to github-pages due to environment protection rules.
The actions file look like:
it works fine on
main
branchThe text was updated successfully, but these errors were encountered: