File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed
Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 1616 },
1717 "scripts" : {
1818 "build" : " tsc" ,
19+ "build:docs" : " npx typedoc" ,
1920 "lint" : " prettier --check \" src/**/*.ts\" " ,
2021 "prepare" : " yarn build" ,
2122 "test" : " jest"
You can’t perform that action at this time.
0 commit comments