-
-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sign created DEB and RPM packages (#288)
* Sign created DEB and RPM packages * Generate test key when verifying release * Fix apt setup * Maybe like this?
- Loading branch information
1 parent
b15ed00
commit c459c4d
Showing
3 changed files
with
33 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,18 +91,35 @@ jobs: | |
- name: Validate Goreleaser config | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
version: v1.8.3 | ||
version: v1.11.5 | ||
args: check | ||
|
||
- name: Set current date | ||
id: set_date | ||
run: | | ||
echo "BUILD_DATE=$(date)" >> $GITHUB_ENV | ||
- name: Generate temporary dummy key for signing | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y gnupg | ||
export GNUPGHOME=/tmp | ||
gpg --batch --gen-key <<EOF | ||
%no-protection | ||
Key-Type: default | ||
Key-Length: 2048 | ||
Subkey-Type: default | ||
Subkey-Length: 2048 | ||
Name-Real: Github Action | ||
Name-Email: [email protected] | ||
Expire-Date: seconds=120 | ||
EOF | ||
gpg --export-secret-key --armor [email protected] > /tmp/signing-key | ||
- name: Build Goreleaser snapshot release | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
version: v1.8.3 | ||
version: v1.11.5 | ||
args: release --rm-dist --skip-publish --snapshot | ||
env: | ||
BUILD_USER: ${{ github.actor }} (via Github Actions) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters