Fix Deploy Step

This commit is contained in:
Ben C 2022-07-28 19:16:24 -04:00 committed by GitHub
parent d4d6101d1d
commit 6a26eee1df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 2 deletions

View File

@ -18,8 +18,18 @@ env:
URL_PREFIX: '/' URL_PREFIX: '/'
PIPENV_VENV_IN_PROJECT: 1 PIPENV_VENV_IN_PROJECT: 1
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs: jobs:
build: build:
name: Build Docs
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -68,7 +78,16 @@ jobs:
with: with:
path: out/ path: out/
- name: Deploy To Pages deploy:
if: success() && github.ref == 'refs/heads/main' environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
name: Deploy Docs
needs: build
if: github.ref == 'refs/heads/main'
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1 uses: actions/deploy-pages@v1

View File

@ -8,6 +8,11 @@ on:
description: 'Name of the artifact to download and check against' description: 'Name of the artifact to download and check against'
type: string type: string
# Prevents schemas from trying to update on old commits
concurrency:
group: "schemas-${{ github.ref }}"
cancel-in-progress: true
jobs: jobs:
update_schemas: update_schemas:
runs-on: ubuntu-latest runs-on: ubuntu-latest