Skip to content

Commit ee6e763

Browse files
committed
tag the commit for goreleaser to use
1 parent e86080b commit ee6e763

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/release.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,27 @@ jobs:
1818
uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
21+
22+
- name: Install YQ
23+
uses: dcarbone/install-yq-action@v1.1.1
24+
25+
- name: Get Version
26+
run: |
27+
version=$(yq -r .version plugin.yaml)
28+
echo "version=$version" >> $GITHUB_OUTPUT;
29+
echo "version=$version";
30+
id: version
31+
32+
- name: Tag Commit
33+
run: |
34+
git tag -f ${{ steps.version.outputs.version }} $(git rev-parse HEAD)
35+
git push origin refs/tags/${{ steps.version.outputs.version }}
36+
2137
- name: Set up Go
2238
uses: actions/setup-go@v5
2339
with:
2440
go-version-file: 'go.mod'
41+
2542
- name: Run GoReleaser
2643
uses: goreleaser/goreleaser-action@v6
2744
with:

.goreleaser.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ archives:
2626
- plugin.yaml
2727
- LICENSE
2828

29+
# prefer the changelog by changesets as we are using that
2930
changelog:
30-
use: github-native
31+
disable: true
3132

3233
release:
3334
prerelease: auto

0 commit comments

Comments
 (0)