From f3ba13a053df2429e4087d9b34cc20b9d8987b32 Mon Sep 17 00:00:00 2001 From: Walter Vargas Date: Fri, 28 Mar 2025 23:43:44 +0000 Subject: [PATCH] Add goreleaes --- .github/workflows/release.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 41574bc..5cab326 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,7 +34,6 @@ jobs: if: github.event_name == 'pull_request' && github.event.pull_request.merged == true run: | # Optional: Extract version from PR title or body - # For example, if your PR title contains [release v0.0.4] VERSION=$(echo "${{ github.event.pull_request.title }}" | grep -oP '\[release v\d+\.\d+\.\d+\]' | grep -oP 'v\d+\.\d+\.\d+') # If no version in PR title, increment patch version @@ -53,11 +52,12 @@ jobs: git tag -a $VERSION -m "Release $VERSION from PR #${{ github.event.pull_request.number }}" git push origin $VERSION - # Create GitHub Release from tag - - name: Create GitHub Release + # Run GoReleaser + - name: Run GoReleaser if: startsWith(github.ref, 'refs/tags/v') - uses: softprops/action-gh-release@v1 + uses: goreleaser/goreleaser-action@v5 with: - generate_release_notes: true - draft: false - prerelease: ${{ contains(github.ref, '-rc') || contains(github.ref, '-beta') || contains(github.ref, '-alpha') }} \ No newline at end of file + version: latest + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file