Skip to content

Commit f1914b1

Browse files
committed
Add action to deploy site
1 parent 286c228 commit f1914b1

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/build-site.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
on: [push, pull_request]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
name: Build Site
7+
steps:
8+
- name: Checkout repository
9+
uses: actions/checkout@v4
10+
- name: Set up Node
11+
uses: actions/setup-node@v4
12+
with:
13+
node-version: 20
14+
- name: Install
15+
run: npm ci
16+
- name: Build
17+
run: npm run build
18+
- name: Build Site
19+
run: ./scripts/build_site.sh
20+
- name: Upload static files as artifact
21+
id: deployment
22+
uses: actions/upload-pages-artifact@v3
23+
with:
24+
path: docs-site/
25+
deploy:
26+
needs: build
27+
if: github.ref == 'refs/heads/beta'
28+
name: Deploy
29+
permissions:
30+
pages: write
31+
id-token: write
32+
environment:
33+
name: github-pages
34+
url: ${{ steps.deployment.outputs.page_url }}
35+
36+
runs-on: ubuntu-latest
37+
steps:
38+
- name: Deploy to GitHub Pages
39+
id: deployment
40+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)