Skip to content

Merge pull request #420 from alercebroker/feat/revive-analytics #34

Merge pull request #420 from alercebroker/feat/revive-analytics

Merge pull request #420 from alercebroker/feat/revive-analytics #34

Workflow file for this run

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 }}
GOOGLE_TAG_ID: ${{ secrets.GOOGLE_TAG_ID }}
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