Skip to content

Commit

Permalink
ci: add deb rpm pkg sha256sum signature file upload
Browse files Browse the repository at this point in the history
  • Loading branch information
keiko233 committed Jul 29, 2024
1 parent 020ae9d commit 6aa010e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/deps-build-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions .github/workflows/deps-delete-releases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ jobs:
*.dmg
*.msi
*.sig
*.sha256
*.exe
*.json

0 comments on commit 6aa010e

Please sign in to comment.