ci(github-action): update image ghcr.io/bjw-s/mdbook ( 8799d49 → 1f30… #244
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 | |
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-latest | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
steps: | |
- name: Generate Token | |
uses: actions/create-github-app-token@v1 | |
id: app-token | |
with: | |
app-id: ${{ secrets.BJWS_APP_ID }} | |
private-key: ${{ secrets.BJWS_APP_PRIVATE_KEY }} | |
- name: Checkout main branch | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ steps.app-token.outputs.token }} | |
- name: Build docs | |
uses: docker://ghcr.io/bjw-s/mdbook:0.4.40@sha256:1f30f430c161ea77beccaa0628d5102f85adfd78db10c9eb659d8ccffcc1b73c | |
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>" |