From 7c6a2f2854d47c60f40b37a2bd3cbcca92dc9618 Mon Sep 17 00:00:00 2001 From: dominikhei <[email protected]> Date: Wed, 8 Apr 2026 15:06:59 +0200 Subject: [PATCH 1/2] Added a release workflow to the repo --- .github/workflows/go-release.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/go-release.yaml diff --git a/.github/workflows/go-release.yaml b/.github/workflows/go-release.yaml new file mode 100644 index 0000000..1878055 --- /dev/null +++ b/.github/workflows/go-release.yaml @@ -0,0 +1,26 @@ +on: + push: + tags: + - 'v*' + +permissions: + contents: write + +jobs: + build-release: + runs-on: ubuntu-latest + strategy: + matrix: + os: [linux, darwin] + arch: [amd64, arm64] + + steps: + - uses: actions/checkout@v4 + + - name: Build and release + uses: wangyoucao577/go-release-action@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: ${{ matrix.os }} + goarch: ${{ matrix.arch }} + generate_checksum: true From 0cb90e273b036bddb512b3e86003e205cfeebcbf Mon Sep 17 00:00:00 2001 From: dominikhei <[email protected]> Date: Wed, 8 Apr 2026 15:32:42 +0200 Subject: [PATCH 2/2] Revert "Merge branch 'main' into development" This reverts commit cb88ef8d7423d3ea794749fb42e44426d661fe0e, reversing changes made to 7c6a2f2854d47c60f40b37a2bd3cbcca92dc9618. --- .github/workflows/go-release.yaml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/go-release.yaml b/.github/workflows/go-release.yaml index 071c8bb..1878055 100644 --- a/.github/workflows/go-release.yaml +++ b/.github/workflows/go-release.yaml @@ -1,5 +1,3 @@ -name: Go Release - on: push: tags: @@ -10,7 +8,6 @@ permissions: jobs: build-release: - name: Build and Release (Linux/macOS) runs-on: ubuntu-latest strategy: matrix: @@ -18,18 +15,9 @@ jobs: arch: [amd64, arm64] steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Ensure tag is on main - run: | - git fetch origin main - if ! git branch --remotes --contains $GITHUB_SHA | grep origin/main; then - echo "Tag is not on main branch" - exit 1 - fi + - uses: actions/checkout@v4 - - name: Build and Release Binary + - name: Build and release uses: wangyoucao577/go-release-action@v1 with: github_token: ${{ secrets.GITHUB_TOKEN }}