Skip to content

Commit

Permalink
Adding github action to sync to s3
Browse files Browse the repository at this point in the history
  • Loading branch information
JerebChase committed Jan 27, 2025
1 parent 50d4e2d commit e8f60b5
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build angular app and deploy to S3

on:
push:
branches: [ "main", "dev" ]

permissions:
id-token: write
contents: read

jobs:
build:

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: Build Angular App
run: npm run build --configuration=development
- name: Deploy to S3
run: aws s3 sync dist/periodic-table/browser s3://periodic-table-dev

0 comments on commit e8f60b5

Please sign in to comment.