0.12.0 #799
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish-web | |
on: | |
push: | |
branches: | |
- web | |
# Even though releases push to `web` branch, that doesn't cause this workflow | |
# to run, because GHA can't start workflows itself. So we also run on | |
# releases. | |
release: | |
types: [released] | |
# Called by pull-request when specifically requested | |
workflow_call: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-web: | |
uses: ./.github/workflows/build-web.yaml | |
deploy-web: | |
needs: build-web | |
runs-on: ubuntu-latest | |
# Don't attempt to publish if on a fork, including a PR. | |
if: ${{ !github.event.pull_request.head.repo.fork }} | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Setup Pages | |
id: pages | |
uses: actions/configure-pages@v5 | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/[email protected] |