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