mirror of
https://github.com/narrrl/proton-drive-linux.git
synced 2026-11-03 16:41:26 +01:00
added .deb signing + version bump
This commit is contained in:
1 parent
9bbd8eb982
commit
4b5666eacb
4 files changed
+21
-7
No files matched your search
@@ -32,7 +32,8 @@ jobs:
|
||||
libdbus-1-dev \
|
||||
desktop-file-utils \
|
||||
rpm \
|
||||
rpm-sign
|
||||
rpm-sign \
|
||||
dpkg-sig
|
||||
|
||||
- name: Set up Rust
|
||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
@@ -135,6 +136,19 @@ jobs:
|
||||
# Build Debian package
|
||||
dpkg-deb --build deb proton-drive-linux_${{ env.VERSION }}_amd64.deb
|
||||
|
||||
- name: Sign Debian package (.deb)
|
||||
env:
|
||||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||
GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }}
|
||||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
||||
run: |
|
||||
if [ -n "$GPG_PRIVATE_KEY" ] && [ -n "$GPG_KEY_NAME" ]; then
|
||||
echo "$GPG_PRIVATE_KEY" | gpg --import
|
||||
dpkg-sig -k "${GPG_KEY_NAME}" -s builder -g "--batch --pinentry-mode loopback --passphrase ${GPG_PASSPHRASE}" *.deb
|
||||
else
|
||||
echo "Skipping deb signing: GPG_PRIVATE_KEY or GPG_KEY_NAME secret is not set."
|
||||
fi
|
||||
|
||||
- name: Package Fedora package (.rpm)
|
||||
run: |
|
||||
# Sanitize version (replace hyphens with dots for RPM compatibility)
|
||||
|
||||
Reference in new issue
Block a user