Use scoped RELEASE_TOKEN instead of GITHUB_TOKEN
This commit is contained in:
@@ -42,7 +42,7 @@ jobs:
|
||||
- name: Upload to release
|
||||
shell: powershell
|
||||
env:
|
||||
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||
run: |
|
||||
$VERSION = (Get-Content src-tauri\tauri.conf.json | ConvertFrom-Json).version
|
||||
|
||||
@@ -117,7 +117,7 @@ jobs:
|
||||
|
||||
- name: Upload to release
|
||||
env:
|
||||
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||
run: |
|
||||
VERSION=$(python3 -c "import json; print(json.load(open('src-tauri/tauri.conf.json'))['version'])")
|
||||
# Get or create the latest release
|
||||
|
||||
Reference in New Issue
Block a user