More updates to the frontend #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |