From 1dd8425ed956778ba96e3651763a1c12a2a839ec Mon Sep 17 00:00:00 2001 From: xm1k3 <73166077+xm1k3@users.noreply.github.com> Date: Thu, 5 Oct 2023 22:44:30 +0200 Subject: [PATCH] added release ci --- .github/workflows/release_binary.yml | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/release_binary.yml diff --git a/.github/workflows/release_binary.yml b/.github/workflows/release_binary.yml new file mode 100644 index 0000000..637631d --- /dev/null +++ b/.github/workflows/release_binary.yml @@ -0,0 +1,32 @@ +name: 🎉 Release Binary + +on: + push: + tags: + - v* + workflow_dispatch: + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: "Check out code" + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: "Set up Go" + uses: actions/setup-go@v4 + with: + go-version: 1.19 + check-latest: true + cache: true + + - name: "Create release on GitHub" + uses: goreleaser/goreleaser-action@v4 + with: + args: "release --clean" + version: latest + workdir: . + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"