Skip to content

Commit

Permalink
chore: artifacts not really accessible, retrying bucket with recuresi…
Browse files Browse the repository at this point in the history
…ve copy
  • Loading branch information
santilland committed Sep 19, 2023
1 parent 37b53e3 commit 82d7f53
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions .github/workflows/build_pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 82d7f53

Please sign in to comment.