From 6aeeb5c178109b100d5fd6827cf1bba8224f24f1 Mon Sep 17 00:00:00 2001 From: Izrafil Archimedes Date: Mon, 23 Feb 2026 11:12:04 +0100 Subject: [PATCH] ci: remove hook goreleaser --- .github/workflows/ci.yml | 15 ++++++++++++++- .goreleaser.yaml | 2 ++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9787014..36af9fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,10 +85,23 @@ jobs: chmod +x "$PLUGIN_DIR/provider-zexlab" - uses: go-semantic-release/action@v1 + id: semrel with: github-token: ${{ secrets.ZX_TOKEN }} - hooks: goreleaser allow-initial-development-versions: true custom-arguments: "--provider zexlab" env: GITEA_TOKEN: ${{ secrets.ZX_TOKEN }} + + - name: Fetch new tag + if: steps.semrel.outputs.version != '' + run: git fetch --tags origin + + - name: Run GoReleaser + if: steps.semrel.outputs.version != '' + uses: goreleaser/goreleaser-action@v6 + with: + version: "~> v2" + args: release --clean --skip=validate + env: + GITEA_TOKEN: ${{ secrets.ZX_TOKEN }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index c284a2d..8a992ae 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,3 +1,5 @@ +version: 2 + gitea_urls: api: https://zexlab.dev/api/v1 download: https://zexlab.dev