Skip to content

Commit 45230c6

Browse files
build: publish API documentation (#217)
Co-authored-by: David Sanders <[email protected]>
1 parent 13af290 commit 45230c6

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/docs.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish API documentation
2+
3+
on:
4+
push:
5+
tags:
6+
- v[0-9]+.[0-9]+.[0-9]+*
7+
8+
permissions: {}
9+
10+
jobs:
11+
docs:
12+
runs-on: ubuntu-24
13+
environment:
14+
name: publish-docs
15+
steps:
16+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag: v4.2.2
17+
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # tag: v4.1.0
18+
with:
19+
node-version: lts/*
20+
- name: Install dependencies
21+
run: yarn --frozen-lockfile
22+
- name: Build API documentation
23+
run: yarn build:docs
24+
- name: Upload to Azure Blob Storage
25+
uses: azure/cli@089eac9d8cc39f5d003e94f8b65efc51076c9cbd # tag: v2.1.0
26+
with:
27+
azcliversion: latest
28+
inlineScript: |
29+
az storage blob upload-batch --account-name $ACCOUNT_NAME -d '$web/notarize/${{ github.ref_name }}' -s ./docs --overwrite --sas-token "$SAS_TOKEN"
30+
env:
31+
SAS_TOKEN: ${{ secrets.SAS_TOKEN }}
32+
ACCOUNT_NAME: ${{ secrets.ACCOUNT_NAME }}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
},
1717
"scripts": {
1818
"build": "tsc",
19+
"build:docs": "npx typedoc",
1920
"lint": "prettier --check \"src/**/*.ts\"",
2021
"prepare": "yarn build",
2122
"test": "jest"

0 commit comments

Comments
 (0)