-
Notifications
You must be signed in to change notification settings - Fork 36
51 lines (44 loc) · 1.25 KB
/
buildclient.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
name: buildclient
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
env:
CI: false
REACT_APP_RECAPTCHA_CLIENT_KEY: 6LdVxgYdAAAAAPtvjrXLAzSd2ANyzIkiSqk_yFpt
REACT_APP_API: api.swordbattle.io
REACT_APP_ENDPOINT_US: na.swordbattle.io
REACT_APP_ENDPOINT_EU: eu.swordbattle.io
REACT_APP_API_BACKUP: api.swordbattle.io
REACT_APP_ENDPOINT_US_BACKUP: na.swordbattle.io
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install and Build
run: |
cd client
yarn install
yarn build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./client/build
# deploy-server:
# runs-on: ubuntu-latest
# defaults:
# run:
# working-directory: ./server
# steps:
# - uses: actions/checkout@v2
# - run: npm install -g @hathora/cli
# - run: >
# hathora-cloud deploy --appId app-18be24d2-4939-4030-9169-c412d9d9dc0c --token ${{ secrets.HATHORA_TOKEN }}