Skip to content

Merge pull request #404 from MrMarble/renovate/ghcr.io-bjw-s-mdbook-0… #56

Merge pull request #404 from MrMarble/renovate/ghcr.io-bjw-s-mdbook-0…

Merge pull request #404 from MrMarble/renovate/ghcr.io-bjw-s-mdbook-0… #56

Workflow file for this run

---
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@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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
token: ${{ steps.generate-token.outputs.token }}
fetch-depth: 0
- name: Build docs
uses: docker://ghcr.io/bjw-s/mdbook:0.4.35@sha256:7bb285c1f8edd91fa9848b65ead4f2835703fbdb906d9be15ad87045327b2f51
with:
args: bash -c "cd docs && mdbook build"
- name: Deploy
uses: peaceiris/actions-gh-pages@v3.9.3
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 }}