Skip to content

Clean up old version extraction from CI workflow #23

Clean up old version extraction from CI workflow

Clean up old version extraction from CI workflow #23

name: Build, Test and Release Binaries
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.21
- name: Run Tests
run: go test ./...
release:
if: startsWith(github.event.ref, 'refs/tags/v')
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.21
- name: Run Goreleaser
if: ${{ github.event_name != 'pull_request' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: goreleaser/goreleaser-action@v3
with:
version: latest
args: release --clean