Publish Api documentations to GitHub pages #1345
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: 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 |