build: do CFA releases (#1566) #231
Workflow file for this run
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 documentation | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+* | |
permissions: {} | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Generate GitHub App token | |
uses: electron/github-app-auth-action@384fd19694fe7b6dcc9a684746c6976ad78228ae # v1.1.1 | |
id: generate-token | |
with: | |
creds: ${{ secrets.GH_APP_CREDS }} | |
export-git-user: true | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag: v4.1.1 | |
with: | |
token: ${{ steps.generate-token.outputs.token }} | |
- name: Fetch all git branches | |
run: git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* | |
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # tag: v4.0.0 | |
with: | |
node-version: lts/* | |
- run: yarn install --frozen-lockfile | |
- run: yarn run docs:build | |
- uses: malept/github-action-gh-pages@e151760357583e2f9152f8e8c8658ceb3ccf3d64 # tag: v1.3.1 | |
with: | |
defaultBranch: main | |
docsPath: typedoc | |
gitCommitEmail: ${{ env.GIT_COMMITTER_EMAIL }} | |
gitCommitMessage: 'Publish [skip ci]' | |
gitCommitUser: ${{ env.GIT_COMMITTER_NAME }} | |
showUnderscoreFiles: true | |
versionDocs: true | |
env: | |
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }} |