Skip to content

Commit e3cf5f9

Browse files
committed
👷 Add deploy GitHub Action
1 parent aaab128 commit e3cf5f9

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "Deploy website"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- uses: actions/setup-node@v1
15+
with:
16+
node-version: "14.x"
17+
18+
- uses: actions/cache@v2
19+
with:
20+
path: '**/node_modules'
21+
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
22+
23+
- name: Build
24+
run: |
25+
npm i
26+
npm run build
27+
- name: Deploy
28+
uses: JamesIves/github-pages-deploy-action@3.6.2
29+
with:
30+
BRANCH: gh-pages
31+
FOLDER: public

0 commit comments

Comments
 (0)