Upload images to S3 only on releases

This commit is contained in:
Oleg Kalachev
2021-07-29 20:19:51 +03:00
parent d1c37fd335
commit f0cc0a9aae

View File

@@ -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