-
Notifications
You must be signed in to change notification settings - Fork 8
49 lines (39 loc) · 1.25 KB
/
veda-auth-portal-deploy.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
43
44
45
46
47
48
name: Deploy VEDA Auth Portal to AWS S3
permissions:
id-token: write
contents: read
on:
workflow_dispatch:
inputs:
environment:
description: Environment to deploy to
required: true
type: choice
options:
- dev
- prod
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./veda-auth-portal
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.DEPLOYMENT_ROLE_ARN }}
role-session-name: "github-veda-auth-central-${{ github.run_id }}"
aws-region: "us-east-2"
- name: Deploy app build to S3 bucket
run: aws s3 sync ./dist/ s3://veda-auth-central-portal --delete