Skip to content

Commit 6f38373

Browse files
committed
chore: fix release ci
1 parent 6ffb866 commit 6f38373

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build_and_release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ on:
1111
description: 'JSON array of target platforms to build [{"os": "ubuntu-latest", "target": "x86_64-unknown-linux-gnu"}, ...]'
1212
required: true
1313
default: '[{"os": "ubuntu-latest", "target": "x86_64-unknown-linux-gnu"}, {"os": "ubuntu-latest", "target": "aarch64-unknown-linux-gnu"}, {"os": "macos-latest", "target": "x86_64-apple-darwin"}]'
14-
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
1516
jobs:
1617
build:
1718
name: Build ${{ matrix.target }}
@@ -29,7 +30,7 @@ jobs:
2930
- name: Get Release Upload URL
3031
id: get_upload_url
3132
run: |
32-
tag_info=$(curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
33+
tag_info=$(curl -H "Authorization: token ${{ env.GITHUB_TOKEN }}" \
3334
"https://api.github.com/repos/${{ github.repository }}/releases/tags/${{ inputs.tag_name }}")
3435
echo "tag_info: ${tag_info}"
3536
upload_url=$(echo $tag_info | jq -r '.upload_url')

0 commit comments

Comments
 (0)