feat: simplify common redirect url pattern (#33) #40
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
name: Documentation | |
on: | |
push: | |
branches: [develop] | |
permissions: | |
id-token: write | |
pages: write | |
contents: write | |
packages: write | |
jobs: | |
publish-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
- run: corepack enable | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
cache: pnpm | |
registry-url: "https://registry.npmjs.org/" | |
scope: "@opengovsg" | |
- name: Install Dependencies | |
run: | | |
pnpm i --frozen-lockfile | |
npm install -g @microsoft/[email protected] | |
npm install -g @microsoft/api-extractor | |
- name: Check API report | |
run: pnpm ci:report | |
- name: Generate documentation | |
run: pnpm build:docs | |
- name: Upload to GitHub Pages | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: apps/docs/.vitepress/dist | |
- name: Deploy to GitHub Pages | |
uses: actions/deploy-pages@v4 |