Skip to content

Commit cac7844

Browse files
committed
fix: release failed
1 parent b61f206 commit cac7844

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ jobs:
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 @%

0 commit comments

Comments
 (0)