-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.07 KB
/
deploy.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Deploy
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Install dependencies
run: npm ci
working-directory: ./app
- name: Create production build
run: npm run build
working-directory: ./app
- name: Create CNAME
run: echo "iseclassdown.ca" > build/CNAME
working-directory: ./app
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: dist
path: ./app/build
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: dist
path: dist
- name: Deploy production build
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: dist
CLEAN: true