0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-08-29 14:56:10 +00:00

Changes to workflows

This commit is contained in:
Dan Petersen 2021-02-10 01:53:00 +01:00
parent b0bc399fca
commit 55187e173f
2 changed files with 14 additions and 17 deletions

View File

@ -20,17 +20,17 @@ jobs:
go-version: 1.15 go-version: 1.15
- -
name: Import the GPG signing key name: Import the GPG signing key
env: id: import_gpg
GPG_KEY: ${{ secrets.GPG_KEY }} uses: danitso/ghaction-import-gpg@v3
run: | with:
echo "$GPG_KEY" | base64 -d | gpg --batch --allow-secret-key-import --import gpg-private-key: ${{ secrets.GPG_KEY }
gpg --keyid-format LONG --list-secret-keys passphrase: ${{ secrets.GPG_PASSPHRASE }}
- -
name: Create release name: Create release
uses: goreleaser/goreleaser-action@v2 uses: danitso/goreleaser-action@v2
with: with:
version: latest version: latest
args: release --rm-dist args: release --rm-dist
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ secrets.GPG_FINGERPRINT }} GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}

View File

@ -22,20 +22,17 @@ jobs:
go-version: 1.15 go-version: 1.15
- -
name: Import the GPG signing key name: Import the GPG signing key
env: id: import_gpg
GPG_KEY: ${{ secrets.GPG_KEY }} uses: danitso/ghaction-import-gpg@v3
run: | with:
GPG_TTY="$(tty)" gpg-private-key: ${{ secrets.GPG_KEY }
export GPG_TTY passphrase: ${{ secrets.GPG_PASSPHRASE }}
echo "$GPG_KEY" | base64 -d | gpg --batch --allow-secret-key-import --import
gpg --keyid-format LONG --list-secret-keys
- -
name: Create release name: Create release
uses: goreleaser/goreleaser-action@v2 uses: danitso/goreleaser-action@v2
with: with:
version: latest version: latest
args: release --rm-dist --snapshot args: release --rm-dist --snapshot
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ secrets.GPG_FINGERPRINT }} GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}