Skip to content

Commit 5561389

Browse files
committed
Update release workflow
1 parent cdfa716 commit 5561389

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,15 @@ jobs:
3636
git archive --format zip --prefix="${REPO_NAME}/" --output "${REPO_NAME}-${TAG_NAME}.zip" HEAD
3737
echo "REPO_NAME=${REPO_NAME}" >> $GITHUB_ENV
3838
echo "TAG_NAME=${TAG_NAME}" >> $GITHUB_ENV
39-
39+
- name: Debug Token Scope
40+
run: |
41+
echo "Testing token scope..."
42+
curl -H "Authorization: token ${{ secrets.TOKEN }}" https://api.github.com/repos/${{ github.repository }}
43+
echo "Token scope test completed."
44+
4045
- name: Upload Release
4146
uses: softprops/action-gh-release@v1
4247
with:
43-
files: "${{ env.REPO_NAME }}-${{ env.TAG_NAME }}.zip"
48+
files: "${{ env.REPO_NAME }}-${{ env.TAG_NAME }}.zip"
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.TOKEN }}

0 commit comments

Comments
 (0)