Skip to content

Commit

Permalink
Merge branch 'master' into docs/add-link-to-public-probability-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert authored Aug 27, 2022
2 parents 6b6c005 + bfd5a2a commit 150ce71
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,13 @@ on:
pull_request:
workflow_dispatch:

# Set permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
docs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

build:
name: Build docs
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -88,15 +79,31 @@ jobs:
# is not empty
[ "$(ls -A docs/_build/html/schemas)" ]
- name: Setup Pages
uses: actions/configure-pages@v2

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'docs/_build/html'

deploy:
name: Deploy docs to GitHub Pages
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
needs: build
# Set permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest

steps:
- name: Setup Pages
uses: actions/configure-pages@v2

- name: Deploy to GitHub Pages
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/master'
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit 150ce71

Please sign in to comment.