publish static content to Github Pages #2
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 static content to Github Pages | |
on: | |
workflow_dispatch: | |
push: | |
branches: ["main"] | |
paths: | |
- pages/* | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: pages | |
cancel-in-progress: false | |
jobs: | |
publish: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
# https://github.com/marketplace/actions/checkout | |
- name: checkout | |
uses: actions/[email protected] | |
# https://github.com/marketplace/actions/configure-github-pages | |
- name: setup Pages | |
uses: actions/[email protected] | |
# https://github.com/marketplace/actions/upload-github-pages-artifact | |
- name: upload artifact | |
uses: actions/[email protected] | |
with: | |
# Upload entire repository | |
path: pages | |
# https://github.com/marketplace/actions/deploy-github-pages-site | |
- name: deploy to GitHub Pages | |
id: deployment | |
uses: actions/[email protected] |