Publish to GitHub Pages #5222
This file contains hidden or 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
| # SPDX-FileCopyrightText: The Threadbare Authors | |
| # SPDX-License-Identifier: MPL-2.0 | |
| name: "Publish to GitHub Pages" | |
| on: | |
| delete: | |
| workflow_dispatch: | |
| workflow_run: | |
| workflows: | |
| - "Build and Export Game" | |
| types: | |
| - completed | |
| # Cancel any ongoing previous run if the job is re-triggered | |
| concurrency: | |
| group: ${{ github.workflow }} | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| pull-requests: write | |
| statuses: write | |
| jobs: | |
| publish: | |
| name: Publish all branches to GitHub Pages | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: endlessm/amalgamate-pages@v2 | |
| with: | |
| workflow_name: "Build and Export Game" | |
| artifact_name: web |