Skip to content

Commit 78b16ca

Browse files
Merge pull request #14 from alexanderjordanbaker/GHPages
Adding GH Pages documentation with auto-publishing
2 parents 0a294ad + ad7736d commit 78b16ca

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Doc Builder
2+
on:
3+
release:
4+
types: [published]
5+
permissions:
6+
pages: write
7+
id-token: write
8+
jobs:
9+
build:
10+
name: Doc Builder
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Use Node ${{ matrix.node }}
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: ${{ matrix.node }}
18+
- name: Install Node dependencies
19+
run: yarn --frozen-lockfile
20+
- name: Build
21+
run: yarn build
22+
- name: Build docs
23+
run: yarn build-docs
24+
- name: Upload docs
25+
uses: actions/upload-pages-artifact@v2
26+
with:
27+
path: docs
28+
deploy:
29+
environment:
30+
name: github-pages
31+
url: ${{ steps.deployment.outputs.page_url }}
32+
needs: build
33+
runs-on: ubuntu-latest
34+
name: Deploy docs
35+
steps:
36+
- name: Deploy
37+
id: deployment
38+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)