Create GitHub release on push to main
Reuses the Docker image tag so both artifacts share the same
version identifier.

Assisted-by: Claude Opus 4.6 via Claude Code
change ppwukkqrsvmtulzwlkpnqmkymlnkvtlw
commit 387a242628f58bbe13bd207985cca45e8b1503b9
author Alpha Chen <alpha@kejadlen.dev>
date
parent yoqmkrxq
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index c39ac84..d69491f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -7,7 +7,7 @@ on:
     branches: [main]
 
 permissions:
-  contents: read
+  contents: write
   packages: write
 
 jobs:
@@ -48,3 +48,7 @@ jobs:
           labels: ${{ steps.meta.outputs.labels }}
           cache-from: type=gha
           cache-to: type=gha,mode=max
+      - if: github.ref == 'refs/heads/main' && github.event_name == 'push'
+        env:
+          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        run: gh release create "${{ steps.meta.outputs.version }}" --generate-notes