From 7b9a0d8112800273c29735b82ca0b410f497f93b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Birm=C3=A9?= Date: Sat, 13 Apr 2024 12:21:07 +0200 Subject: [PATCH] chore: continous deploy to dev bucket --- .github/workflows/run-cd.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/run-cd.yml diff --git a/.github/workflows/run-cd.yml b/.github/workflows/run-cd.yml new file mode 100644 index 00000000..3b51bdbc --- /dev/null +++ b/.github/workflows/run-cd.yml @@ -0,0 +1,35 @@ +name: Continous deploy to dev environment +on: + push: + branches: + - "main" + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 18 + registry-url: https://registry.npmjs.org/ + + - name: Build + run: | + yarn + yarn build + + - name: Sync to Dev bucket + uses: jakejarvis/s3-sync-action@v0.5.1 + with: + args: --follow-symlinks --delete + env: + AWS_S3_BUCKET: "origin-intercom-app-dev" + AWS_ACCESS_KEY_ID: ${{ secrets.S3_AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_AWS_SECRET_ACCESS_KEY }} + AWS_REGION: "eu-north-1" + SOURCE_DIR: "dist/"