diff --git a/.github/workflows/deps-build-linux.yaml b/.github/workflows/deps-build-linux.yaml index 3408520475..03c1b0c09b 100644 --- a/.github/workflows/deps-build-linux.yaml +++ b/.github/workflows/deps-build-linux.yaml @@ -86,3 +86,20 @@ jobs: prerelease: true tauriScript: pnpm tauri args: -f nightly -c ./backend/tauri/tauri.nightly.conf.json + + - name: Calc the archive signature + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + TAG_NAME=${{ inputs.tag }} + find ./backend/target/release/bundle \( -name "*.deb" -o -name "*.rpm" \) | while read file; do + sha_file="$file.sha256" + + if [[ ! -f "$sha_file" ]]; then + sha256sum "$file" > "$sha_file" + echo "Created checksum file for: $file" + fi + + gh release upload $TAG_NAME "$sha_file" --clobber + echo "Uploaded $sha_file to release $TAG_NAME" + done diff --git a/.github/workflows/deps-delete-releases.yaml b/.github/workflows/deps-delete-releases.yaml index 8e2d190070..0be76ba41c 100644 --- a/.github/workflows/deps-delete-releases.yaml +++ b/.github/workflows/deps-delete-releases.yaml @@ -39,5 +39,6 @@ jobs: *.dmg *.msi *.sig + *.sha256 *.exe *.json