Skip to content

Updated release workflow #6

Updated release workflow

Updated release workflow #6

Workflow file for this run

name: Release
on:
push:
tags:
- "kubeadm-join-config-*"
env:
GORELEASER_VERSION: "v2.2.0"
jobs:
goreleaser:
name: Goreleaser
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- 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
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}