-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.24 KB
/
deploy_prod.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
name: S3DeployProd
on:
push:
branches: [ main ]
env:
NODE_ENV: production
APP_TITLE: ALeRCE Explorer
jobs:
publish:
runs-on: ubuntu-latest
environment: production
permissions:
id-token: write
contents: read
env:
AWS_BUCKET_NAME: ${{ secrets.AWS_BUCKET_NAME }}
AWS_CLOUDFRONT: ${{ secrets.AWS_CLOUDFRONT_ID }}
AVRO_API_BASE_URL: ${{ secrets.AVRO_API_BASE_URL }}
CATSHTM_API_BASE_URL: ${{ secrets.CATSHTM_API_BASE_URL }}
GOOGLE_REDIRECT_URI: ${{ secrets.GOOGLE_REDIRECT_URI }}
TNS_API_BASE_URL: ${{ secrets.TNS_API_BASE_URL }}
USERS_API_BASE_URL: ${{ secrets.USERS_API_BASE_URL }}
ZTF_API_BASE_URL: ${{ secrets.ZTF_API_BASE_URL }}
ZTF_DR_API_BASE_URL: ${{ secrets.ZTF_DR_API_BASE_URL }}
steps:
- name: Configure AWS credentials
id: creds
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE }}
aws-region: us-east-1
output-credentials: true
unset-current-credentials: true
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- run: npm install
- run: npm run generate
- run: npm run deploy