Skip to content

update api

update api #65

Workflow file for this run

---
name: "Publish Docs"
on:
push:
branches: ["main"]
paths: ["docs/**", "**/*.md"]
pull_request:
branches: ["main"]
paths: ["docs/**", "**/*.md"]
jobs:
publish:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Generate Token
uses: tibdex/github-app-token@32691ba7c9e7063bd457bd8f2a5703138591fa58 # v1.9.0
id: generate-token
with:
app_id: "${{ secrets.BOT_APP_ID }}"
private_key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"
- name: Checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
token: "${{ steps.generate-token.outputs.token }}"
- name: Build docs
uses: docker://ghcr.io/bjw-s/mdbook:0.4.37@sha256:aa9e2ef5ef4f59829d4134cf0ee34340ba1ba6d4579e1850e39bc651c2d09a89
with:
args: mdbook build docs
- name: Deploy
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: "${{ steps.generate-token.outputs.token }}"
publish_dir: ./docs/book
user_name: "rosey-bot[bot]"
user_email: "rosey-bot <98030736+rosey-bot[bot]@users.noreply.github.com>"