Skip to content

Commit

Permalink
Use differnet action for S3
Browse files Browse the repository at this point in the history
  • Loading branch information
Slavko Rihtaric committed May 23, 2024
1 parent 153c0ae commit 521bb07
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,15 +211,17 @@ jobs:
docker cp temp_container:${{ inputs.cdn_artifacts_docker_path }} ${{ runner.temp }}/${{ matrix.platform }}
- name: Upload CDN artifacts to S3
if: ${{ !fromJson(steps.skip-build.outputs.skip) }} && ${{ inputs.cdn_artifacts }}
uses: keithweaver/[email protected]
uses: jakejarvis/s3-sync-action@master
with:
command: cp
source: ${{ runner.temp }}/${{ matrix.platform }}
destination: ${{ secrets.RELEASE_ARTIFACTS_S3 }}/${{ inputs.cdn_artifacts_s3_path }}/${{ needs.tag_check.outputs.semver }}/${{ matrix.platform }}
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_CDN }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY_CDN }}
aws_region: ${{ secrets.AWS_REGION_CDN }}
args: --follow-symlinks
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_CDN }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_CDN }}
AWS_S3_BUCKET: ${{ secrets.RELEASE_ARTIFACTS_S3 }}
AWS_REGION: ${{ secrets.AWS_REGION_CDN }}
SOURCE_DIR: ${{ runner.temp }}/${{ matrix.platform }}
DEST_DIR: '${{ inputs.cdn_artifacts_s3_path }}/${{ needs.tag_check.outputs.semver }}/${{ matrix.platform }}'

outputs:
image: ${{ env.IMAGE }}

Expand Down

0 comments on commit 521bb07

Please sign in to comment.