@@ -132,6 +132,7 @@ jobs:
132132 if : ${{ needs.draft.outputs.needs_release == 'true' }}
133133 permissions :
134134 contents : write
135+ actions : read
135136 strategy :
136137 fail-fast : false
137138 matrix :
@@ -141,7 +142,7 @@ jobs:
141142 - target : aarch64-apple-darwin
142143 runner : macos-latest-large
143144 - target : x86_64-pc-windows-msvc
144- runner : windows-latest-l
145+ runner : windows-latest
145146 env :
146147 TURBO_TOKEN : ${{ secrets.TURBO_TOKEN }}
147148 TURBO_TEAM : ${{ secrets.TURBO_TEAM }}
@@ -185,8 +186,6 @@ jobs:
185186 echo 'VITE_POSTHOG_KEY=${{ secrets.VITE_POSTHOG_KEY }}' >> .env
186187 echo 'VITE_POSTHOG_HOST=${{ secrets.VITE_POSTHOG_HOST }}' >> .env
187188 echo 'VITE_SERVER_URL=${{ secrets.NEXT_PUBLIC_WEB_URL }}' >> .env
188- echo "NEXT_PUBLIC_CAP_AWS_REGION=${{ secrets.NEXT_PUBLIC_CAP_AWS_REGION }}" >> .env
189- echo "NEXT_PUBLIC_CAP_AWS_BUCKET=${{ secrets.NEXT_PUBLIC_CAP_AWS_BUCKET }}" >> .env
190189 echo 'RUST_TARGET_TRIPLE=${{ matrix.settings.target }}' >> .env
191190
192191 - name : Build app
@@ -210,6 +209,52 @@ jobs:
210209 TAURI_SIGNING_PRIVATE_KEY : ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
211210 TAURI_SIGNING_PRIVATE_KEY_PASSWORD : ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
212211
212+ # - name: Upload unsigned Windows installer
213+ # if: ${{ runner.os == 'Windows' }}
214+ # id: upload_unsigned_windows_installer
215+ # uses: actions/upload-artifact@v4
216+ # with:
217+ # name: unsigned-windows-installer
218+ # path: target/${{ matrix.settings.target }}/release/bundle/nsis/*.exe
219+ # if-no-files-found: error
220+
221+ # - name: Submit SignPath signing request
222+ # if: ${{ runner.os == 'Windows' }}
223+ # id: submit_signpath_signing_request
224+ # uses: signpath/github-action-submit-signing-request@v1
225+ # with:
226+ # api-token: ${{ secrets.SIGNPATH_API_TOKEN }}
227+ # organization-id: ${{ secrets.SIGNPATH_ORGANIZATION_ID }}
228+ # project-slug: ${{ secrets.SIGNPATH_PROJECT_SLUG }}
229+ # signing-policy-slug: ${{ secrets.SIGNPATH_SIGNING_POLICY_SLUG }}
230+ # github-artifact-id: ${{ steps.upload_unsigned_windows_installer.outputs.artifact-id }}
231+ # wait-for-completion: true
232+ # output-artifact-directory: signed-windows-installer
233+
234+ # - name: Restore signed Windows installer
235+ # if: ${{ runner.os == 'Windows' }}
236+ # shell: pwsh
237+ # run: |
238+ # $signedDir = "signed-windows-installer"
239+ # $bundleDir = "target/${{ matrix.settings.target }}/release/bundle/nsis"
240+
241+ # if (-not (Test-Path $signedDir)) {
242+ # throw "Signed artifact directory '$signedDir' not found."
243+ # }
244+
245+ # $executables = Get-ChildItem -Path $signedDir -Filter *.exe -Recurse
246+ # if (-not $executables) {
247+ # throw "No signed executables found in '$signedDir'."
248+ # }
249+
250+ # # Copy signed executables back to the original bundle location for CrabNebula upload
251+ # Write-Host "Copying signed executables to: $bundleDir"
252+ # Copy-Item -Path (Join-Path $signedDir '*.exe') -Destination $bundleDir -Force
253+
254+ # # List the files to verify
255+ # Write-Host "Files in bundle directory after signing:"
256+ # Get-ChildItem -Path $bundleDir -Filter *.exe | ForEach-Object { Write-Host " - $($_.Name)" }
257+
213258 - name : Upload assets
214259 uses : crabnebula-dev/cloud-release@v0
215260 with :
0 commit comments