Merge pull request #56 from Okeanos/renovate/require-shasum-updates #55
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
# yaml-language-server:$schema=https://json.schemastore.org/github-workflow.json | |
# https://docs.github.com/en/actions/writing-workflows | |
name: Publish Pages | |
# yamllint disable-line rule:truthy | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
# Allow one concurrent deployment | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read # to read the repository itself | |
pages: write # to configure to Pages | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Extract Tool Versions | |
id: tool-versions | |
run: | | |
node_version=$(grep -F 'node' .mise.toml | cut -d '=' -f2 | xargs) | |
echo "node_version=${node_version}" >> "$GITHUB_OUTPUT" | |
- name: Set up NodeJs | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ steps.tool-versions.outputs.node_version }} | |
- name: Setup Pages | |
id: pages | |
uses: actions/configure-pages@v5 | |
- name: Install Dependencies | |
run: npm ci | |
- name: Generate Site | |
run: npx antora antora-playbook.yml | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: build/site | |
deploy: | |
runs-on: ubuntu-latest | |
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment | |
permissions: | |
pages: write # to deploy to Pages | |
id-token: write # to verify the deployment originates from an appropriate sourc | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
needs: build | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |