diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 776904a..cc7f3cd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,6 +38,20 @@ jobs: - run: cargo test --manifest-path desktop/Cargo.toml + # Tauri downloads its NSIS tools with no retry and GitHub sometimes answers 504. Later attempts + # only redo the bundling, and the tools stay cached for the publishing step below. + - name: Build with retries for the installer tools + shell: bash + env: + TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} + TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }} + run: | + for attempt in 1 2 3 4 5 6 7 8; do + npx tauri build && exit 0 + sleep 60 + done + exit 1 + - uses: tauri-apps/tauri-action@v0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package-lock.json b/package-lock.json index ceae09c..245660c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "boost-focus-timer", - "version": "0.6.0", + "version": "0.6.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "boost-focus-timer", - "version": "0.6.0", + "version": "0.6.1", "license": "UNLICENSED", "dependencies": { "@dnd-kit/core": "^6.3.1", diff --git a/package.json b/package.json index d5850ab..16770b2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "boost-focus-timer", - "version": "0.6.0", + "version": "0.6.1", "private": true, "description": "A calm focus timer with to-dos, habits, goals and session history. Runs in the browser or as a browser extension; all data stays local.", "author": "ttncode",