Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

feat(ci): append download links to release notes after desktop build

Gener420382830a20
diff --git a/.github/workflows/desktop-release.yml b/.github/workflows/desktop-release.yml
index 0685668eb..a23cb6145 100644
--- a/.github/workflows/desktop-release.yml
+++ b/.github/workflows/desktop-release.yml
@@ -65,9 +65,48 @@ jobs:
with:
projectPath: src/desktop
tagName: v${{ steps.version.outputs.version }}
- releaseName: "Alook Desktop v${{ steps.version.outputs.version }}"
- releaseBody: "See the assets below for download links."
- releaseDraft: true
+ releaseName: "Alook v${{ steps.version.outputs.version }}"
+ releaseBody: ""
+ releaseDraft: false
prerelease: false
includeUpdaterJson: true
args: --target ${{ matrix.target }}
+
+ update-release-notes:
+ needs: build
+ runs-on: ubuntu-latest
+ permissions:
+ contents: write
+ steps:
+ - uses: actions/checkout@v6
+
+ - name: Read version
+ id: version
+ run: echo "version=$(tr -d '\n' < src/desktop/.deploy-version)" >> "$GITHUB_OUTPUT"
+
+ - name: Append download links to release body
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ VERSION: ${{ steps.version.outputs.version }}
+ run: |
+ TAG="v${VERSION}"
+ BASE="https://github.com/${{ github.repository }}/releases/download/${TAG}"
+
+ EXISTING=$(gh release view "$TAG" --json body --jq '.body' 2>/dev/null || echo "")
+
+ DOWNLOADS="
+
+ ---
+
+ ## Download
+
+ ### macOS
+ [Apple Silicon](${BASE}/Alook_${VERSION}_aarch64.dmg) | [Intel](${BASE}/Alook_${VERSION}_x64.dmg)
+
+ ### Windows
+ [.exe Installer](${BASE}/Alook_${VERSION}_x64-setup.exe) | [.msi](${BASE}/Alook_${VERSION}_x64_en-US.msi)
+
+ ### Linux
+ [.deb](${BASE}/Alook_${VERSION}_amd64.deb) | [.rpm](${BASE}/Alook-${VERSION}-1.x86_64.rpm) | [.AppImage](${BASE}/Alook_${VERSION}_amd64.AppImage)"
+
+ gh release edit "$TAG" --notes "${EXISTING}${DOWNLOADS}"