Skip to content

A tiny friend in your Mac's notch and on your iPhone that keeps an eye on your AI coding agents: Claude Code, Codex, Cursor, Gemini CLI, Antigravity and more. Approve from the notch or your Lock Screen.

Fix artifact upload: manual-run or publish gate, 3-day retention

Louis Raillea9912e2f6a72
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index 7d818bf5..0c7d77a3 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -78,25 +78,29 @@ jobs:
"version=$version" >> $env:GITHUB_OUTPUT
Get-ChildItem release | Format-Table Name, Length
- # Enabled here so a manual run hands back the installer: this is how it gets
- # built without a local Rust + MSVC toolchain. Upstream gates it on PUBLISH
- # because publishing is paused; a workflow_dispatch artifact stays private to
- # the repo and publishes nothing.
+ # Upload only on a manual run or when publishing a release.
+ # The repo is public, so artifacts are downloadable by any signed-in GitHub
+ # user; the condition keeps them off automatic tag builds while downloads
+ # are paused. retention-days: 3 limits exposure.
- uses: actions/upload-artifact@v4
+ if: github.event_name == 'workflow_dispatch' || env.PUBLISH == 'true'
with:
name: Coucou-Windows-setup
path: windows/release/Coucou-Windows-${{ steps.pack.outputs.version }}-setup.exe
+ retention-days: 3
# The unsigned NSIS installer is what Defender false-positives on, so the
# bare binaries go up as well. hooks.rs already falls back to looking for
# coucou-hook.exe next to coucou.exe, which is exactly this layout, so the
# portable pair runs with working Claude Code hooks and no installer.
- uses: actions/upload-artifact@v4
+ if: github.event_name == 'workflow_dispatch' || env.PUBLISH == 'true'
with:
name: Coucou-Windows-portable
path: |
windows/target/release/coucou.exe
windows/target/release/coucou-hook.exe
+ retention-days: 3
- name: Publish the release
if: env.PUBLISH == 'true' && startsWith(github.ref, 'refs/tags/windows-v')