mirror of
https://github.com/CopterExpress/clover_vm.git
synced 2026-05-26 15:13:25 +00:00
Upload images to S3 only on releases
This commit is contained in:
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
@@ -20,6 +20,7 @@ jobs:
|
||||
- name: Build
|
||||
run: ./build.sh
|
||||
- name: Upload
|
||||
if: ${{ github.event_name == 'release' }}
|
||||
# Not using ready S3 actions, because they either don't run on macOS machines or don't support changing the endpoint
|
||||
run: |
|
||||
AWS_ACCESS_KEY_ID=${{secrets.S3_KEY}} AWS_SECRET_ACCESS_KEY=${{secrets.S3_SECRET_KEY}} aws s3 sync . s3://clovervm/ --acl public-read --endpoint-url https://ams3.digitaloceanspaces.com --no-progress
|
||||
|
||||
Reference in New Issue
Block a user