From 17ccf3c74406d3a28cadfb20652be687787fddcc Mon Sep 17 00:00:00 2001 From: ostiwe Date: Mon, 11 Aug 2025 16:07:54 +0300 Subject: [PATCH] feat(ci): Added workflow for release --- .github/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..9226f92 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +name: goreleaser + +on: + push: + # run only against tags + tags: + - "*" + +permissions: + contents: write + +jobs: + goreleaser: + runs-on: [ubuntu-latest, self-hosted] + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: stable + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v6 + with: + distribution: goreleaser + version: "~> v2" + args: release --clean + env: + GITEA_TOKEN: ${{ secrets.GORELEASER_TOKEN }} \ No newline at end of file