AWS_ACCESS_KEY_IDS3 Access keyAWS_SECRET_ACCESS_KEYS3 Secret Access keyAWS_ENDPOINTS3 Region + Domain (eg. sfo2.digitaloceanspaces.com)AWS_BUCKETBucket name
LOCAL_FILElocation of file for uploadREMOTE_FILEintended location for file
INCLUDE_MD5will include your file postfixed with.md5and the md5 hash for that binary
- name: Release Binary to S3
uses: jonfriesen/[email protected]
with:
args: --acl-public
env:
LOCAL_FILE: dist/MyApp
REMOTE_FILE: downloads/latest/MyApp
AWS_ENDPOINT: ${{ secrets.AWS_ENDPOINT }}
AWS_BUCKET: ${{ secrets.AWS_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
This action is ultra simple and uses s3cmd under the hood. The execution of a call looks like:
s3cmd put ${LOCAL_FILE} s3://${AWS_BUCKET}/${REMOTE_FILE} $*
adding arguments to (as in the example above) can be done easily with "with" params.