forked from brentvollebregt/monopoly-money
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.28 KB
/
deploy-client.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
name: Deploy Client to gh-pages
on:
workflow_dispatch:
push:
branches:
- master
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "14.x"
- name: Install npm 7
run: npm install -g npm@7
- name: Install dependencies
run: npm install --legacy-peer-deps
- name: Build project
run: npm run build
env:
SKIP_PREFLIGHT_CHECK: true
REACT_APP_API_ROOT: https://monopoly-money.fly.dev
REACT_APP_GOOGLE_ANALYTICS_TRACKING_ID: G-3SFPXD2CWJ
REACT_APP_API_UNREACHABLE_ERROR_MESSAGE: "Unable to communicate with server.\nSince this is publicly hosted, we may have run out of minutes on the server.\nThis should be running again next month when the time is reset."
CI: false
GENERATE_SOURCEMAP: false
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./packages/client/build
PUBLISH_BRANCH: gh-pages
cname: monopoly-money.nitratine.net
force_orphan: true # Only keep latest commit in gh-pages (to keep repo size down)