From eaf7dbe23eac051134e4e465f560ca73de59c7b8 Mon Sep 17 00:00:00 2001 From: samwaf Date: Fri, 2 Aug 2024 16:01:50 +0800 Subject: [PATCH] =?UTF-8?q?build:=E6=B5=8B=E8=AF=95=20goreleaser=E5=8F=91?= =?UTF-8?q?=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/goreleaser.yml | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitea/workflows/goreleaser.yml diff --git a/ .gitea/workflows/goreleaser.yml b/ .gitea/workflows/goreleaser.yml new file mode 100644 index 0000000..bc0b3bd --- /dev/null +++ b/ .gitea/workflows/goreleaser.yml @@ -0,0 +1,34 @@ +name: goreleaser + +on: + push: + tags: + - 'v*' + +permissions: + contents: write + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - + name: Set up Go + uses: actions/setup-go@v4 + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v4 + with: + # either 'goreleaser' (default) or 'goreleaser-pro' + distribution: goreleaser + version: latest + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution + # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} \ No newline at end of file