Skip to content

Commit a9e7612

Browse files
committed
Build: Auto-deploy changes to source (closes #107)
1 parent eb55f71 commit a9e7612

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/deploy.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Deploy website
2+
3+
on:
4+
push:
5+
branches:
6+
- source
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-18.04
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Setup Node
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: '10.x'
18+
19+
- run: npm install
20+
- run: npm run build
21+
22+
- name: Deploy
23+
# Use the SHA because I am untrustworthy
24+
# TODO: We probably should fork any non-GitHub owned actions
25+
uses: peaceiris/actions-gh-pages@1828d86
26+
with:
27+
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
publish_dir: ./build
29+
publish_branch: master

0 commit comments

Comments
 (0)