fix reserved token name
This commit is contained in:
@@ -36,11 +36,11 @@ jobs:
|
||||
|
||||
- name: Create Gitea release with assets
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
GIT_RELEASE_TOKEN: ${{ secrets.GIT_RELEASE_TOKEN }}
|
||||
run: |
|
||||
# Create the release
|
||||
RELEASE=$(curl -s -X POST \
|
||||
-H "Authorization: token $GITEA_TOKEN" \
|
||||
-H "Authorization: token $GIT_RELEASE_TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{
|
||||
\"tag_name\": \"${{ github.ref_name }}\",
|
||||
@@ -56,7 +56,7 @@ jobs:
|
||||
# Upload all built wheels and tarballs
|
||||
for FILE in packages/foreignthon/dist/* packages/langs/es/dist/*; do
|
||||
curl -s -X POST \
|
||||
-H "Authorization: token $GITEA_TOKEN" \
|
||||
-H "Authorization: token $GIT_RELEASE_TOKEN" \
|
||||
-F "attachment=@$FILE" \
|
||||
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases/$RELEASE_ID/assets"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user