-
Notifications
You must be signed in to change notification settings - Fork 35
32 lines (30 loc) · 979 Bytes
/
avalon.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
name: Avalon Deploy
on:
push:
branches:
- develop
paths:
- "examples/avalon/**"
- .github/workflows/avalon.yml
defaults:
run:
working-directory: examples/avalon
jobs:
server:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install -g @hathora/cli
- run: hathora-cloud deploy --appId app-774cadb2-6773-4510-92ce-21aee474e4c2 --token ${{ secrets.HATHORA_CLOUD_TOKEN }}
frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm ci
- run: npm install ts-node surge -g
- run: HATHORA_APP_ID=app-774cadb2-6773-4510-92ce-21aee474e4c2 ts-node ../../src/cli.ts build --only client
- run: cp client/prototype-ui/dist/index.html client/prototype-ui/dist/200.html
- run: surge client/prototype-ui/dist hathora-avalon.surge.sh
env:
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }}
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}