deploy main to s3

This commit is contained in:
Ruben Fiszel
2023-03-29 16:46:14 +02:00
parent 5aa14562a0
commit 9853380df6

28
.github/workflows/deploy-to-s3.yml vendored Normal file
View File

@@ -0,0 +1,28 @@
name: Deploy to s3
on:
push:
branches: [main]
tags: ["*"]
jobs:
npm_check:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: "npm build"
timeout-minutes: 5
run:
cd frontend && npm ci && npm run generate-backend-client && npm run
build
- uses: reggionick/s3-deploy@v3
with:
folder: frontend/build
bucket: windmill-frontend
bucket-region: us-east-1