-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: publish API documentation (#217)
Co-authored-by: David Sanders <[email protected]>
- Loading branch information
1 parent
13af290
commit 45230c6
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Publish API documentation | ||
|
||
on: | ||
push: | ||
tags: | ||
- v[0-9]+.[0-9]+.[0-9]+* | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-24 | ||
environment: | ||
name: publish-docs | ||
steps: | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag: v4.2.2 | ||
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # tag: v4.1.0 | ||
with: | ||
node-version: lts/* | ||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
- name: Build API documentation | ||
run: yarn build:docs | ||
- name: Upload to Azure Blob Storage | ||
uses: azure/cli@089eac9d8cc39f5d003e94f8b65efc51076c9cbd # tag: v2.1.0 | ||
with: | ||
azcliversion: latest | ||
inlineScript: | | ||
az storage blob upload-batch --account-name $ACCOUNT_NAME -d '$web/notarize/${{ github.ref_name }}' -s ./docs --overwrite --sas-token "$SAS_TOKEN" | ||
env: | ||
SAS_TOKEN: ${{ secrets.SAS_TOKEN }} | ||
ACCOUNT_NAME: ${{ secrets.ACCOUNT_NAME }} |
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