penguin/tinyproxy

An L4 proxy designed to act as a tiny transparent shim

commit 73b740e1ac73b2073f531cef779ad44fabf9b05e

author斟酌 鵬兄 <tgckpg@gmail.com>
date2026-05-26T17:13:25Z
subjectAdded release artifacts
commit 73b740e1ac73b2073f531cef779ad44fabf9b05e
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date:   2026-05-26T17:13:25Z

    Added release artifacts
---
 .github/workflows/cmake-multi-platform.yml | 47 ++++++++++++++++++++++++++++--
 1 file changed, 44 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml
index b0415ab..1a7abb6 100644
--- a/.github/workflows/cmake-multi-platform.yml
+++ b/.github/workflows/cmake-multi-platform.yml
@@ -4,6 +4,7 @@ on:
   workflow_dispatch:
   push:
     branches: ["main"]
+    tags: ["v*"]
   pull_request:
     branches: ["main"]
 
@@ -151,10 +152,50 @@ jobs:
 
           cp tinyproxy.conf dist/tinyproxy/
 
-      - name: Upload artifact
+          powershell.exe -NoProfile -Command \
+            "Compress-Archive -Path dist/tinyproxy -DestinationPath tinyproxy-Windows-X64.zip -Force"
+
+      - name: Upload CI artifact
         uses: actions/upload-artifact@v4
         with:
           name: tinyproxy-Windows-X64
-          path: dist/tinyproxy/
+          path: tinyproxy-Windows-X64.zip
           if-no-files-found: error
-          retention-days: ${{ env.ARTIFACT_RETENTION_DAYS }}
\ No newline at end of file
+          retention-days: ${{ env.ARTIFACT_RETENTION_DAYS }}
+
+  release:
+    name: GitHub Release
+    runs-on: ubuntu-latest
+
+    if: startsWith(github.ref, 'refs/tags/v')
+
+    needs:
+      - linux-musl-x86_64
+      - linux-musl-arm64
+      - macos
+      - windows
+
+    permissions:
+      contents: write
+
+    steps:
+      - name: Download CI artifacts
+        uses: actions/download-artifact@v4
+        with:
+          path: release-assets
+          merge-multiple: true
+
+      - name: Show release assets
+        run: |
+          find release-assets -type f -maxdepth 2 -print
+
+      - name: Create GitHub Release
+        env:
+          GH_TOKEN: ${{ github.token }}
+        run: |
+          tag="${GITHUB_REF_NAME}"
+
+          gh release create "$tag" \
+            release-assets/* \
+            --title "$tag" \
+            --generate-notes