From e995492240f28ace7db869ca0e897d865601bf2c Mon Sep 17 00:00:00 2001 From: STommydx Date: Wed, 6 Mar 2024 02:53:25 -0500 Subject: [PATCH] ci: setup semantic release --- .github/workflows/release.yaml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1079dcc..ee5b469 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -17,17 +17,11 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - uses: actions/setup-go@v3 with: - fetch-depth: 0 - - name: Set up Go - uses: actions/setup-go@v5 + go-version: 1.21 + - uses: go-semantic-release/action@v2 with: - go-version: stable - - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v5 - with: - distribution: goreleaser - version: latest - args: release --clean + hooks: goreleaser env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}