Skip to content

Commit 16aca09

Browse files
committed
chore(release): prepare for public distribution - npm, VS Code extension, and GitHub Pages Docs
1 parent c454204 commit 16aca09

File tree

11 files changed

+390
-422
lines changed

11 files changed

+390
-422
lines changed

.github/workflows/docs.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Deploy Documentation
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '20'
21+
- name: Install dependencies
22+
run: npm install
23+
- name: Generate artifacts
24+
run: |
25+
npm run golden:generate
26+
npm run demo:generate
27+
- name: Build site
28+
run: node scripts/build-docs.js
29+
- name: Upload artifact
30+
uses: actions/upload-pages-artifact@v3
31+
with:
32+
path: './docs/site'
33+
34+
deploy:
35+
needs: build
36+
runs-on: ubuntu-latest
37+
environment:
38+
name: github-pages
39+
url: ${{ steps.deployment.outputs.page_url }}
40+
steps:
41+
- name: Deploy to GitHub Pages
42+
id: deployment
43+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)