Skip to content

Commit

Permalink
tag the commit for goreleaser to use
Browse files Browse the repository at this point in the history
testing

Version Helm Plugin

Version Helm Plugin

revert
  • Loading branch information
kevjt committed Sep 26, 2024
1 parent e86080b commit 5461b46
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,27 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install YQ
uses: dcarbone/install-yq-action@v1.1.1

- name: Get Version
run: |
version=$(yq -r .version plugin.yaml)
echo "version=$version" >> $GITHUB_OUTPUT;
echo "version=$version";
id: version

- name: Tag Commit
run: |
git tag -f ${{ steps.version.outputs.version }} $(git rev-parse HEAD)
git push origin refs/tags/${{ steps.version.outputs.version }}
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
Expand Down
3 changes: 2 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ archives:
- plugin.yaml
- LICENSE

# prefer the changelog by changesets as we are using that
changelog:
use: github-native
disable: true

release:
prerelease: auto

0 comments on commit 5461b46

Please sign in to comment.