diff --git a/.github/workflows/docs_build.yml b/.github/workflows/docs_build.yml index 189d7cda..aabdef8e 100644 --- a/.github/workflows/docs_build.yml +++ b/.github/workflows/docs_build.yml @@ -18,8 +18,18 @@ env: URL_PREFIX: '/' PIPENV_VENV_IN_PROJECT: 1 +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: true + jobs: build: + name: Build Docs runs-on: ubuntu-latest steps: @@ -68,7 +78,16 @@ jobs: with: path: out/ - - name: Deploy To Pages - if: success() && github.ref == 'refs/heads/main' + deploy: + 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 diff --git a/.github/workflows/update_schemas.yml b/.github/workflows/update_schemas.yml index e1ddbeba..f98394f8 100644 --- a/.github/workflows/update_schemas.yml +++ b/.github/workflows/update_schemas.yml @@ -8,6 +8,11 @@ on: description: 'Name of the artifact to download and check against' type: string +# Prevents schemas from trying to update on old commits +concurrency: + group: "schemas-${{ github.ref }}" + cancel-in-progress: true + jobs: update_schemas: runs-on: ubuntu-latest