Skip to content

Commit

Permalink
Add download artifact before uploading to s#
Browse files Browse the repository at this point in the history
  • Loading branch information
linxiaoxin committed May 25, 2024
1 parent a008a94 commit 2309c0a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,17 @@ jobs:
runs-on: ubuntu-latest

steps:
#Download artifact
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: quemistry-web-client
path: dist_s3/
overwrite: true

- name: Deploy to S3
run: |
aws s3 sync dist/ s3://quemisty-client-web --delete
aws s3 sync dist_s3/ s3://quemisty-client-web --delete
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down

0 comments on commit 2309c0a

Please sign in to comment.