Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 24 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,29 @@ name: release

on:
push:
branches:
- master
tags:
- v*.*.*

jobs:
tag-release:
uses: form3tech/tfe-providers-gh-workflows/.github/workflows/release.yml@v0.2.10
secrets: inherit
permissions:
id-token: write
contents: write
permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Setup Golang
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version-file: 'go.mod'
cache: true
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0
with:
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36 changes: 18 additions & 18 deletions goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
version: 2
archives:
- format: zip
- formats:
- zip
builds:
- binary: terraform-provider-githubfile_v{{.Version}}
env:
- CGO_ENABLED=0
goarch:
- amd64
- arm64
goos:
- darwin
- linux
- windows
# ignore unsupported GOOS/GOARCH pair windows/arm64
# https://goreleaser.com/deprecations/#builds-for-windowsarm64
ignore:
- goos: windows
goarch: arm64
- binary: terraform-provider-githubfile_v{{.Version}}
env:
- CGO_ENABLED=0
goarch:
- amd64
- arm64
goos:
- darwin
- linux
- windows
ignore:
- goos: windows
goarch: arm64
changelog:
filters:
exclude:
- "^Merge pull request"
- "^Merge branch"
- "^Merge pull request"
- "^Merge branch"
30 changes: 0 additions & 30 deletions scripts/goreleaser.sh

This file was deleted.

Loading