Skip to content

Commit 1c00400

Browse files
committed
Adding GithubAction to deploy site
1 parent f4b7729 commit 1c00400

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build and Deploy site
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v1
15+
- name: Install
16+
uses: borales/actions-yarn@v2.0.0
17+
with:
18+
cmd: install
19+
- name: Build
20+
uses: borales/actions-yarn@v2.0.0
21+
with:
22+
cmd: build
23+
- name: Install SSH Client
24+
uses: webfactory/ssh-agent@v0.2.0
25+
with:
26+
ssh-private-key: ${{ secrets.DEPLOY_KEY }}
27+
- name: Deploy
28+
uses: JamesIves/github-pages-deploy-action@releases/v3
29+
with:
30+
SSH: true
31+
BRANCH: gh-pages
32+
FOLDER: 'dist'
33+
CLEAN: true

0 commit comments

Comments
 (0)