Skip to content

Commit

Permalink
Updated release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mmontes11 committed Aug 25, 2024
1 parent 16f5e90 commit f68df1e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release
on:
push:
tags:
- "kubeadm-join-config-*"
- "v*"

env:
GORELEASER_VERSION: "v2.2.0"
Expand All @@ -21,13 +21,10 @@ jobs:
- name: Fetch tags
run: git fetch --force --tags

- name: Set GORELEASER_PREVIOUS_TAG
run: echo "GORELEASER_PREVIOUS_TAG=$(git tag -l "kubeadm-join-config-*" --sort=-version:refname | head -n 2 | tail -n 1)" >> $GITHUB_ENV

- name: GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: ${{ env.GORELEASER_VERSION }}
args: release --skip=validate
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f68df1e

Please sign in to comment.