0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-08-29 06:45:43 +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
-
name: Import the GPG signing key
env:
GPG_KEY: ${{ secrets.GPG_KEY }}
run: |
echo "$GPG_KEY" | base64 -d | gpg --batch --allow-secret-key-import --import
gpg --keyid-format LONG --list-secret-keys
id: import_gpg
uses: danitso/ghaction-import-gpg@v3
with:
gpg-private-key: ${{ secrets.GPG_KEY }
passphrase: ${{ secrets.GPG_PASSPHRASE }}
-
name: Create release
uses: goreleaser/goreleaser-action@v2
uses: danitso/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
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
-
name: Import the GPG signing key
env:
GPG_KEY: ${{ secrets.GPG_KEY }}
run: |
GPG_TTY="$(tty)"
export GPG_TTY
echo "$GPG_KEY" | base64 -d | gpg --batch --allow-secret-key-import --import
gpg --keyid-format LONG --list-secret-keys
id: import_gpg
uses: danitso/ghaction-import-gpg@v3
with:
gpg-private-key: ${{ secrets.GPG_KEY }
passphrase: ${{ secrets.GPG_PASSPHRASE }}
-
name: Create release
uses: goreleaser/goreleaser-action@v2
uses: danitso/goreleaser-action@v2
with:
version: latest
args: release --rm-dist --snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ secrets.GPG_FINGERPRINT }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}