Skip to content

Commit

Permalink
fix: fixes deploy workflows (#107)
Browse files Browse the repository at this point in the history
* 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: jakejarvis/s3-sync-action#51 (comment)

* fix: remove duplicate branches entry
  • Loading branch information
tamssokari authored Oct 19, 2023
1 parent b9d8ed8 commit 46cf411
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ on:
types:
- opened
- synchronize
push:
branches:
- main
jobs:
test:
uses: ./.github/workflows/test.yml
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
uses: jakejarvis/[email protected]
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 }}"
Expand Down Expand Up @@ -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"

0 comments on commit 46cf411

Please sign in to comment.