-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 869 Bytes
/
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
name: Build angular app and deploy to S3
on:
push:
branches: [ "main", "dev" ]
permissions:
id-token: write
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: npm Install
run: npm install
- name: Install Angular CLI
run: npm install -g @angular/cli
- name: Build Angular App
run: ng build --configuration development
- name: Configure AWS credentials for Github Actions
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::105459448871:role/GithubProviderRole
- name: Deploy to S3
run: aws s3 sync dist/periodic-table/browser s3://periodic-table-dev --acl public-read