Skip to content

Commit

Permalink
Update pages workflow to follow AssessR
Browse files Browse the repository at this point in the history
  • Loading branch information
dfsnow committed Aug 23, 2023
1 parent 22c7410 commit e00cebb
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,8 @@ on:
name: pages

jobs:
pages:
build-sphinx-site:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write

steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -35,6 +28,17 @@ jobs:
with:
path: '_build/html'

deploy:
if: contains(fromJSON('["main", "master"]'), github.ref_name) && github.event_name != 'pull_request'
needs: build-sphinx-site
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit e00cebb

Please sign in to comment.