chore(container): update image ghcr.io/bjw-s/mdbook to 5b2b3f9 #141
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/deploy-docs.yaml" | |
- "docs/**" | |
- "README.md" | |
jobs: | |
release-docs: | |
name: Release documentation | |
runs-on: ubuntu-22.04 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
steps: | |
- name: Generate Token | |
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2 | |
id: generate-token | |
with: | |
app_id: ${{ secrets.BOT_APP_ID }} | |
private_key: ${{ secrets.BOT_APP_PRIVATE_KEY }} | |
- name: Checkout main branch | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
with: | |
token: ${{ steps.generate-token.outputs.token }} | |
fetch-depth: 0 | |
- name: Build docs | |
uses: docker://ghcr.io/bjw-s/mdbook:0.4.40@sha256:5b2b3f914835ca3f91ac111f949b359a8a2340f6af6e555739788978c15aa662 | |
with: | |
args: bash -c "cd docs && mdbook build" | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0 | |
if: ${{ github.ref == 'refs/heads/main' }} | |
with: | |
github_token: ${{ steps.generate-token.outputs.token }} | |
publish_dir: ./docs/book/html | |
user_name: "pepinillo-bot[bot]" | |
user_email: "101514388+pepinillo-bot[bot]@users.noreply.github.com" | |
commit_message: ${{ github.event.head_commit.message }} |