update examples #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Poker Deploy | |
on: | |
push: | |
branches: | |
- develop | |
paths: | |
- "examples/poker/**" | |
- .github/workflows/poker.yml | |
defaults: | |
run: | |
working-directory: examples/poker | |
jobs: | |
server: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: npm install -g @hathora/cli | |
- run: hathora-cloud deploy --appId app-c6802174-e24f-4eae-9feb-5d951ce31f78 --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-c6802174-e24f-4eae-9feb-5d951ce31f78 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-poker.surge.sh | |
env: | |
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }} | |
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }} | |
frontend-web: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: npm ci | |
- run: npm install ts-node surge -g | |
- run: HATHORA_APP_ID=app-c6802174-e24f-4eae-9feb-5d951ce31f78 ts-node ../../src/cli.ts build --only client | |
- run: cp client/web/dist/index.html client/web/dist/200.html | |
- run: surge client/web/dist screeching-chance.surge.sh | |
env: | |
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }} | |
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }} |