-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 866 Bytes
/
deploy.yml
File metadata and controls
37 lines (30 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# https://github.com/marketplace/actions/deploy-to-github-pages
name: Deploy
on:
push:
branches: [ main ]
jobs:
build-and-deploy:
name: Build + Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
# https://github.com/actions/setup-node/#v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install
run: yarn
- name: Build
run: yarn build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
# https://github.com/marketplace/actions/github-pages-action#%EF%B8%8F-first-deployment-with-github_token
github_token: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build