File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 4343 name : secure-dns-releases
4444
4545 - name : Upload release
46+ shell : bash
4647 run : |
48+ set -x
4749 curl -fSsL \
4850 -o release.json \
4951 -H "Accept: application/vnd.github+json" \
@@ -56,12 +58,11 @@ jobs:
5658 -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}"\
5759 -H "X-GitHub-Api-Version: 2022-11-28" \
5860 https://api.github.com/repos/${{ github.repository }}/releases/assets/%
59- RELEASE_ID=`jq '.id'`
6061 ls secure-dns-* | xargs -I % curl -fSsL \
6162 -X POST \
6263 -H "Accept: application/vnd.github+json" \
6364 -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}"\
6465 -H "X-GitHub-Api-Version: 2022-11-28" \
6566 -H "Content-Type: application/octet-stream" \
66- https://uploads.github.com/repos/${{ github.repository }}/releases/${RELEASE_ID} /assets?name=% \
67+ https://uploads.github.com/repos/${{ github.repository }}/releases/`jq '.id'` /assets?name=% \
6768 --data-binary @%
You can’t perform that action at this time.
0 commit comments