From 2309c0a46a8bd1d47b65f2bd86750af0f9a0b369 Mon Sep 17 00:00:00 2001 From: linxiaoxin Date: Sat, 25 May 2024 23:02:03 +0800 Subject: [PATCH] Add download artifact before uploading to s# --- .github/workflows/build.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eb7da0e..e202a3d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }}