From 82d7f536451aed0375afc9cbdd0534974005212e Mon Sep 17 00:00:00 2001 From: Daniel Santillan Date: Tue, 19 Sep 2023 17:28:58 +0200 Subject: [PATCH] chore: artifacts not really accessible, retrying bucket with recuresive copy --- .github/workflows/build_pull_request.yaml | 28 +++++++++-------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build_pull_request.yaml b/.github/workflows/build_pull_request.yaml index 7c8e7e64..0048edea 100644 --- a/.github/workflows/build_pull_request.yaml +++ b/.github/workflows/build_pull_request.yaml @@ -43,22 +43,16 @@ jobs: run: | cd generators/ python generate_indicators.py - # Upload build as artifact - - name: Upload artifact - uses: actions/upload-pages-artifact@v1 - with: - # Upload build folder - path: 'build' # Upload build to S3 using cp - # - name: Upload folder to bucket - # uses: a-sync/s3-uploader@master - # with: - # args: --recursive - # env: - # AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - # AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - # AWS_REGION: 'eu-central-1' - # S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} - # S3_KEY: 'catalog/${GITHUB_REF##*/}' - # FILE: ./build + - name: Upload folder to bucket + uses: a-sync/s3-uploader@master + with: + args: --recursive + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_REGION: 'eu-central-1' + S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} + S3_KEY: 'catalog/${GITHUB_REF##*/}' + FILE: ./build