File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -51,11 +51,19 @@ jobs:
51
51
name : ${{ env.FILENAME }}.iso
52
52
path : ./image/${{ env.FILENAME }}.iso
53
53
54
- - name : Upload ISO to release (only for release events)
54
+ - name : Release ISO for public access (only for release events)
55
55
if : github.event_name == 'release'
56
- uses : actions/upload-release-asset@v1
57
- with :
58
- upload_url : ${{ github.event.release.upload_url }}
59
- asset_path : ./image/${{ env.FILENAME }}.iso
60
- asset_name : ${{ env.FILENAME }}.iso
61
- asset_content_type : application/octet-stream
56
+ run : |
57
+ aws s3 --endpoint-url https://fsn1.your-objectstorage.com cp ./image/${{ env.FILENAME }}.iso s3://os2borgerpc/borgerpc-os-images/${{ env.FILENAME }}.iso
58
+ env :
59
+ AWS_ACCESS_KEY_ID : ${{ secrets.HETZNER_OS2BORGERPC_ACCESS_KEY }}
60
+ AWS_SECRET_ACCESS_KEY : ${{ secrets.HETZNER_OS2BORGERPC_SECRET_KEY }}
61
+ - name : Add download URL to release notes
62
+ if : github.event_name == 'release'
63
+ run : |
64
+ DOWNLOAD_URL="https://fsn1.your-objectstorage.com/os2borgerpc/borgerpc-os-images/${{ env.FILENAME }}.iso"
65
+ curl -X PATCH \
66
+ -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
67
+ -H "Content-Type: application/json" \
68
+ -d "{\"body\": \"Download the ISO here: $DOWNLOAD_URL\"}" \
69
+ https://api.github.com/repos/${{ github.repository }}/releases/${{ github.event.release.id }}
You can’t perform that action at this time.
0 commit comments