Enable S3 uploads for GHA artifacts (#725)

This commit is contained in:
Kevin López Brante 2020-10-05 00:54:45 -03:00 committed by GitHub
parent 7a119360bf
commit d43cbdc87f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 1 deletions

View File

@ -57,4 +57,21 @@ jobs:
with:
path: ${{runner.workspace}}/build/audacious/vgmstream.so
name: vgmstream-audacious
- name: Upload Artifacts to S3
working-directory: ${{runner.workspace}}/build
shell: bash
env:
AWS_DEFAULT_REGION: us-west-1
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
run: |
cd cli
tar cvfz vgmstream-cli.tar.gz vgmstream_cli vgmstream123
cd ../audacious
tar cvfz vgmstream-audacious.tar.gz vgmstream.so
cd ..
aws s3 cp cli/vgmstream-cli.tar.gz s3://vgmstream-builds/${{github.sha}}/linux/vgmstream-cli.tar.gz --acl public-read
aws s3 cp cli/vgmstream-cli.tar.gz s3://vgmstream-builds/latest/linux/vgmstream-cli.tar.gz --acl public-read
aws s3 cp audacious/vgmstream-audacious.tar.gz s3://vgmstream-builds/${{github.sha}}/linux/vgmstream-audacious.tar.gz --acl public-read
aws s3 cp audacious/vgmstream-audacious.tar.gz s3://vgmstream-builds/latest/linux/vgmstream-audacious.tar.gz --acl public-read

View File

@ -93,3 +93,23 @@ jobs:
with:
name: test.pdb
path: ${{github.workspace}}\tmp\cli-p
- name: Upload Artifacts to S3
working-directory: ${{github.workspace}}
shell: powershell
env:
AWS_DEFAULT_REGION: us-west-1
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
run: |
aws s3 cp Release\test.zip s3://vgmstream-builds/${{github.sha}}/windows/ --acl public-read
aws s3 cp Release\foo_input_vgmstream.fb2k-component s3://vgmstream-builds/${{github.sha}}/windows/ --acl public-read
aws s3 cp Release\test.pdb.zip s3://vgmstream-builds/${{github.sha}}/windows/ --acl public-read
aws s3 cp Release\foo_input_vgmstream.pdb.zip s3://vgmstream-builds/${{github.sha}}/windows/ --acl public-read
aws s3 cp Release\test.zip s3://vgmstream-builds/latest/windows/ --acl public-read
aws s3 cp Release\foo_input_vgmstream.fb2k-component s3://vgmstream-builds/latest/windows/ --acl public-read
aws s3 cp Release\test.pdb.zip s3://vgmstream-builds/latest/windows/ --acl public-read
aws s3 cp Release\foo_input_vgmstream.pdb.zip s3://vgmstream-builds/latest/windows/ --acl public-read