Skip to content
This repository has been archived by the owner on Feb 26, 2025. It is now read-only.

chore(deps): update actions/create-github-app-token digest to 0d56448 #114

chore(deps): update actions/create-github-app-token digest to 0d56448

chore(deps): update actions/create-github-app-token digest to 0d56448 #114

Workflow file for this run

---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "Docs"
on:
workflow_dispatch:
push:
branches: ["main"]
paths:
- .github/workflows/docs.yaml
- docs/**
- README.md
permissions:
actions: write
contents: read
id-token: write
pages: write
jobs:
build:
name: Build Docs
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Generate Token
uses: actions/create-github-app-token@0d564482f06ca65fa9e77e2510873638c82206f2 # v1
id: app-token
with:
app-id: "${{ secrets.BOT_APP_ID }}"
private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
token: "${{ steps.app-token.outputs.token }}"
- name: Setup Pages
id: pages
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
with:
token: "${{ steps.app-token.outputs.token }}"
enablement: true
- name: Build docs
uses: docker://ghcr.io/bjw-s-labs/mdbook:0.4.44@sha256:cecb70606cf5d43b34d9697eaab463847a6cd29a478ec5d91afb30337e6f4ad0
with:
args: mdbook build docs
- name: Upload artifact
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
with:
path: ./docs/book/html
publish:
name: Publish Docs
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Generate Token
uses: actions/create-github-app-token@0d564482f06ca65fa9e77e2510873638c82206f2 # v1
id: app-token
with:
app-id: "${{ secrets.BOT_APP_ID }}"
private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4
with:
token: "${{ steps.app-token.outputs.token }}"