From 9853380df633ad9fce2de988edfdcefb0e72f031 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 29 Mar 2023 16:46:14 +0200 Subject: [PATCH] deploy main to s3 --- .github/workflows/deploy-to-s3.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/deploy-to-s3.yml diff --git a/.github/workflows/deploy-to-s3.yml b/.github/workflows/deploy-to-s3.yml new file mode 100644 index 0000000000..97b27ea0be --- /dev/null +++ b/.github/workflows/deploy-to-s3.yml @@ -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