Skip to content

Commit

Permalink
👷 Update actions in release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
flovouin committed Mar 30, 2024
1 parent 7645a22 commit 33e704c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Terraform Provider release workflow.
name: Release

# This GitHub action creates a release when a tag that matches the pattern "v*" (e.g. v0.1.0) is created.
on:
push:
tags:
Expand All @@ -14,27 +12,30 @@ permissions:

jobs:
goreleaser:
name: 📦 Release
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4
with:
# Allow goreleaser to access older tag information.
fetch-depth: 0

- uses: actions/setup-go@v3
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
cache: true

- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v5
uses: crazy-max/ghaction-import-gpg@v6
id: import_gpg
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v5
with:
args: release --rm-dist
env:
Expand Down

0 comments on commit 33e704c

Please sign in to comment.