Skip to content

Publish Api documentations to GitHub pages #1103

Publish Api documentations to GitHub pages

Publish Api documentations to GitHub pages #1103

name: Publish Api documentations to GitHub pages
permissions:
# The SSH key has the write access
contents: none
on:
repository_dispatch:
types: run-build-api-docs
workflow_dispatch:
schedule:
- cron: "00 12 * * *"
jobs:
publish-pages:
environment:
name: API documentations
url: https://doctum.long-term.support/api-docs/
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ssh-key: ${{ secrets.SSH_KEY_DEPLOY }}
- name: Import GPG key
# v5.2.0 - 111c56156bcc6918c056dbef52164cfa583dc549
uses: crazy-max/ghaction-import-gpg@111c56156bcc6918c056dbef52164cfa583dc549
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
- name: Build docs and push changes
run: ./scripts/update-built-docs.sh