Skip to content

ci(github-action): update image ghcr.io/bjw-s-labs/mdbook ( affa58b →… #253

ci(github-action): update image ghcr.io/bjw-s-labs/mdbook ( affa58b →…

ci(github-action): update image ghcr.io/bjw-s-labs/mdbook ( affa58b →… #253

Workflow file for this run

---
# 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.LAB_ASSISTANT_APP_ID }}
private-key: ${{ secrets.LAB_ASSISTANT_APP_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-labs/mdbook:0.4.40@sha256:16cef32bcbdd5e474fdddb272a907d5370d7cda9316b1fa46ebdfce375caeb3d
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