Skip to content

Commit

Permalink
fix(ci): also deploy .zip TEST-SNAPSHOT versions
Browse files Browse the repository at this point in the history
  • Loading branch information
paolofacchinetti committed Mar 18, 2024
1 parent 377fe76 commit 7a83721
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- staging

env:
VERSION: TEST-SNAPSHOT
AWS_REGION: eu-south-1

jobs:
Expand All @@ -28,6 +29,12 @@ jobs:

- name: Run Ketchup Showcase build
run: npm run ksc:build

- name: Zip artifacts
run: |
cd packages/ketchup/dist
zip -qr /tmp/ketchup.zip *
zip -qr /tmp/ketchup-components.zip ketchup/*
- name: Setup AWS
uses: aws-actions/configure-aws-credentials@v4
Expand All @@ -37,4 +44,9 @@ jobs:
aws-region: ${{ env.AWS_REGION }}

- name: Upload artifacts to AWS S3
run: |
aws s3 cp /tmp/ketchup.zip s3://smeup-ketchup/npm-pub/ketchup-stencil/${{ env.VERSION }}/zip/ketchup.zip
aws s3 cp /tmp/ketchup-components.zip s3://smeup-ketchup/npm-pub/ketchup-stencil/${{ env.VERSION }}/zip/ketchup-components.zip
- name: Upload showcase to AWS S3
run: aws s3 sync packages/ketchup-showcase/dist/ s3://smeup-ketchup/staging/ --delete

0 comments on commit 7a83721

Please sign in to comment.