Skip to content

Commit 05d209a

Browse files
BackendDevopsclaude
andcommitted
ci: pass github_token via with: and use RELEASE_PAT secret
tauri-action expects the token under with.github_token, not env. Also adds fetch-depth: 0 and explicit toolchain: stable. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8476062 commit 05d209a

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,9 @@ jobs:
3030
rust-targets: ""
3131
runs-on: ${{ matrix.platform }}
3232
steps:
33-
- name: Enable long paths (Windows)
34-
if: matrix.platform == 'windows-latest'
35-
shell: pwsh
36-
run: git config --system core.longpaths true
37-
3833
- uses: actions/checkout@v4
34+
with:
35+
fetch-depth: 0
3936

4037
- name: Verify tag matches package version
4138
if: github.ref_type == 'tag'
@@ -55,6 +52,7 @@ jobs:
5552

5653
- uses: dtolnay/rust-toolchain@stable
5754
with:
55+
toolchain: stable
5856
targets: ${{ matrix.rust-targets }}
5957

6058
- uses: Swatinem/rust-cache@v2
@@ -83,12 +81,8 @@ jobs:
8381

8482
- name: Build & release (Tauri)
8583
uses: tauri-apps/tauri-action@v0
86-
env:
87-
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
88-
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
89-
CARGO_NET_RETRY: "5"
90-
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
9184
with:
85+
github_token: ${{ secrets.RELEASE_PAT }}
9286
tagName: ${{ github.ref_type == 'tag' && github.ref_name || format('v{0}', github.run_number) }}
9387
releaseName: "Photon IDE ${{ github.ref_type == 'tag' && github.ref_name || github.run_number }}"
9488
releaseBody: "Download the installer for your platform below. See the README for build-from-source instructions."

0 commit comments

Comments
 (0)