File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Binaries
2+
3+ on :
4+ release :
5+ types :
6+ - published
7+
8+ jobs :
9+ publish-binaries :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Retrieve and upload artifacts
13+ run : |
14+ mkdir -p ./artifacts/amd64 ./artifacts/arm64
15+ docker create --name amd64 ghcr.io/linuxserver/python:amd64-${{ github.event.release.tag_name }} blah
16+ docker cp amd64:/usr/local/. ./artifacts/amd64/
17+ tar -czvf python-amd64.tar.gz -C ./artifacts/amd64/ .
18+ echo "**** Uploading amd64 tarball ****"
19+ curl -X POST \
20+ -H "Accept: application/vnd.github+json" \
21+ -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
22+ -H "Content-Type: application/octet-stream" \
23+ "https://uploads.github.com/repos/linuxserver/docker-python/releases/${{ github.event.release.id }}/assets?name=python-amd64.tar.gz" \
24+ --data-binary "@python-amd64.tar.gz"
25+ docker create --name arm64 ghcr.io/linuxserver/python:arm64v8-${{ github.event.release.tag_name }} blah
26+ docker cp arm64:/usr/local/. ./artifacts/arm64/
27+ tar -czvf python-arm64.tar.gz -C ./artifacts/arm64/ .
28+ echo "**** Uploading arm64 tarball ****"
29+ curl -X POST \
30+ -H "Accept: application/vnd.github+json" \
31+ -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
32+ -H "Content-Type: application/octet-stream" \
33+ "https://uploads.github.com/repos/linuxserver/docker-python/releases/${{ github.event.release.id }}/assets?name=python-arm64.tar.gz" \
34+ --data-binary "@python-arm64.tar.gz"
35+
You can’t perform that action at this time.
0 commit comments