Skip to content

Commit

Permalink
build: publish API documentation (#217)
Browse files Browse the repository at this point in the history
Co-authored-by: David Sanders <[email protected]>
  • Loading branch information
erickzhao and dsanders11 authored Dec 7, 2024
1 parent 13af290 commit 45230c6
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/docs.yml
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 }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
},
"scripts": {
"build": "tsc",
"build:docs": "npx typedoc",
"lint": "prettier --check \"src/**/*.ts\"",
"prepare": "yarn build",
"test": "jest"
Expand Down

0 comments on commit 45230c6

Please sign in to comment.