From 46cf41196eee85b85ed84c42dda0eb8256c97975 Mon Sep 17 00:00:00 2001 From: tams sokari Date: Thu, 19 Oct 2023 17:34:58 +0100 Subject: [PATCH] fix: fixes deploy workflows (#107) * config: only run deploy-preview on prs * config: deploy dist folder in packages/embed for embed staging deploy * fix: deploy-staging/components use single quotes in args ref: https://github.com/jakejarvis/s3-sync-action/issues/51#issuecomment-825726567 * fix: remove duplicate branches entry --- .github/workflows/deploy-preview.yml | 3 --- .github/workflows/deploy-staging.yml | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index f837fd18..c3a4eab8 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -7,9 +7,6 @@ on: types: - opened - synchronize - push: - branches: - - main jobs: test: uses: ./.github/workflows/test.yml diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 34370034..59e9e0fe 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -19,8 +19,8 @@ jobs: uses: jakejarvis/s3-sync-action@v0.5.1 with: args: >- - --follow-symlinks --delete --exclude "*" --include - "packages/components/smart-camera-web.js" + --follow-symlinks --delete --exclude '*' --include + 'packages/components/smart-camera-web.js' env: AWS_S3_BUCKET: "${{ secrets.AWS_S3_BUCKET }}" AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}" @@ -56,5 +56,5 @@ jobs: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_REGION: ${{ secrets.AWS_REGION }} - SOURCE_DIR: "./dist" + SOURCE_DIR: "./packages/embed/dist" DEST_DIR: "inline/staging"