ci(github-action): update ghcr.io/bjw-s/mdbook:0.4.36 docker digest t… #168
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: "Docs: Release to GitHub pages" | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/docs-publish.yaml" | |
- "docs/**" | |
jobs: | |
release-docs: | |
name: Release documentation | |
runs-on: ubuntu-22.04 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
steps: | |
- name: "Generate Short Lived OAuth App Token (ghs_*)" | |
uses: actions/[email protected] | |
id: app-token | |
with: | |
app-id: "${{ secrets.BJWS_APP_ID }}" | |
private-key: "${{ secrets.BJWS_APP_PRIVATE_KEY }}" | |
- name: Checkout main branch | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
with: | |
token: ${{ steps.app-token.outputs.token }} | |
fetch-depth: 0 | |
- name: Build docs | |
uses: docker://ghcr.io/bjw-s/mdbook:0.4.36@sha256:d86edc42a0d22e38f3d59d6cf517a9d93a7dbe8ec3ec80a114dfd7a99d9354cd | |
with: | |
args: bash -c "cd docs && mdbook build" | |
- name: Deploy | |
uses: peaceiris/[email protected] | |
if: ${{ github.ref == 'refs/heads/main' }} | |
with: | |
github_token: ${{ steps.app-token.outputs.token }} | |
publish_dir: ./docs/book/html | |
user_name: "bjw-s-bot[bot]" | |
user_email: "bjw-s-bot <87358111+bjw-s-bot[bot]@users.noreply.github.com>" |