Skip to content

Commit 9255a83

Browse files
committed
feat(docs): generate reference API site and publish to GitHub Pages on publish
1 parent 0bcee7b commit 9255a83

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,25 @@ jobs:
6464
# org admin Github Token required for the changelog/tag commit+push
6565
# to work via an exception to branch protection rules
6666
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
67+
- name: Build API reference (TypeDoc)
68+
run: yarn reference:api:gh-pages
69+
- name: Upload API reference artifact
70+
uses: actions/upload-pages-artifact@v3
71+
with:
72+
path: ./apidocs-out
73+
74+
deploy-api-docs:
75+
name: "Github Pages"
76+
needs: publish_npm
77+
runs-on: ubuntu-latest
78+
environment:
79+
name: github-pages
80+
url: ${{ steps.deployment.outputs.page_url }}
81+
permissions:
82+
contents: read
83+
pages: write
84+
id-token: write
85+
steps:
86+
- name: Deploy to GitHub Pages
87+
id: deployment
88+
uses: actions/deploy-pages@v5

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@ packages/**/version.js
539539
packages/**/version.ts
540540
typedoc.raw.json
541541
reference/
542+
apidocs-out/
542543
tests/ios/Firebase
543544
tests/ios/resetXcode.sh
544545
.tmp

0 commit comments

Comments
 (0)