-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.49 KB
/
deploy-main.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
name: "Deploy master"
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: "Clone this repository"
uses: actions/checkout@v1
- name: "Deploy front-end"
run: cd front && yarn && yarn deploy
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
AWS_DEFAULT_OUTPUT: ${{ secrets.AWS_DEFAULT_OUTPUT }}
REACT_APP_AUTH_URL: ${{ secrets.REACT_APP_AUTH_URL }}
REACT_APP_GAME_APPLICATION_ID: ${{ secrets.REACT_APP_GAME_APPLICATION_ID }}
REACT_APP_LOBBY_URL: ${{ secrets.REACT_APP_LOBBY_URL }}
S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }}
S3_BUCKET_PATH: ${{ secrets.S3_BUCKET_PATH }}
DISTRIBUTION_ID: ${{ secrets.DISTRIBUTION_ID }}
- name: "Deploy back-end"
run: cd api && yarn && yarn deploy
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
AWS_DEFAULT_OUTPUT: ${{ secrets.AWS_DEFAULT_OUTPUT }}
REDIS_HOST: ${{ secrets.REDIS_HOST }}
REDIS_PASSWORD: ${{ secrets.REDIS_PASSWORD }}
STAGE: ${{ secrets.STAGE }}
WS_ENDPOINT: ${{ secrets.WS_ENDPOINT }}
RELEASE_POSTFIX: ${{ secrets.RELEASE_POSTFIX }}