Skip to content

release

release #63

Workflow file for this run

name: release
on:
push:
tags: [ 'v*' ]
jobs:
goreleaser_release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Unshallow
run: git fetch --prune --unshallow
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Get tag
id: latest
uses: miniscruff/changie-action@v2
with:
version: latest
args: latest
- name: Add env vars
run: |
echo GORELEASER_CURRENT_TAG=${{ steps.latest.outputs.output }} >> $GITHUB_ENV
echo RELEASE_NOTES_PATH=.changes/${{ steps.latest.outputs.output }}.md >> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --clean --release-notes=${{ env.RELEASE_NOTES_PATH }} --skip=validate --verbose
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}