Skip to content

Commit 800d744

Browse files
Added new GH pages deploy workflow
2 parents 0beb526 + 42cf5af commit 800d744

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Deploy your Hyas site to GitHub Pages
2+
3+
name: GitHub Pages
4+
5+
on:
6+
push:
7+
branches:
8+
- master
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-20.04
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v2
16+
with:
17+
node-version: '16'
18+
cache: 'npm'
19+
20+
- name: Install dependencies
21+
run: npm install
22+
23+
- name: Check for linting errors
24+
run: npm test
25+
26+
- name: Build production website
27+
run: npm run build
28+
29+
- name: Deploy to GitHub Pages
30+
uses: peaceiris/actions-gh-pages@v3
31+
with:
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
publish_dir: ./public

0 commit comments

Comments
 (0)