-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (34 loc) · 1.06 KB
/
github-pages-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
name: pages-build
on:
push:
branches:
- 'master'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.0]
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Setup node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Generate environment file from github secrets
run: node github-generate-environment.js
env:
ENVIRONMENT: '${{ secrets.ENVIRONMENT }}'
- name: Install dependencies
run: npm install
- name: Run tests
run: npm run test
- name: Build app
working-directory: ./
run: npm run build:pro && cp dist/personal-web/browser/index.html dist/personal-web/browser/404.html
- name: Deploy to gh-pages branch
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
branch: gh-pages # The branch the action should deploy to.
folder: dist/personal-web/browser # The folder the action should deploy.