Skip to content

Commit 758a921

Browse files
committed
Use GoReleaser
1 parent 850ecba commit 758a921

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: ☁️ Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v[0-9]+.[0-9]+.[0-9]+[0-9A-Za-z]?'
7+
8+
env:
9+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
15+
permissions:
16+
contents: write
17+
18+
steps:
19+
- name: ⬇️ Git clone the repository
20+
uses: actions/checkout@v4
21+
22+
- name: 📦 Install Go
23+
uses: actions/setup-go@v5
24+
with:
25+
go-version-file: 'go.mod'
26+
27+
- name: 📦 Install dependencies
28+
run: go mod vendor
29+
30+
- name: 📦 Install GoReleaser
31+
uses: goreleaser/goreleaser-action@v6
32+
with:
33+
install-only: true
34+
35+
- name: ☁️ GoReleaser
36+
run: |
37+
goreleaser

.goreleaser.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
3+
builds:
4+
- id: provider
5+
env: [ CGO_ENABLED=0 ]
6+
goos: [ linux, darwin ]
7+
goarch: [ amd64, arm64 ]
8+
9+
release:
10+
prerelease: auto
11+
github:
12+
owner: skpr
13+
name: terraform-provider-k8s

0 commit comments

Comments
 (0)