From 225507097876417b3177521927a62c30b26844d2 Mon Sep 17 00:00:00 2001 From: AvicennaJr Date: Sun, 15 Oct 2023 23:14:06 +0300 Subject: [PATCH] add separate for releases --- .github/workflows/build.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..3c26f7f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +name: Go + +on: + push: + tags: + - "*" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.21 + id: go + + - name: Test + run: go mod tidy && make test + + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v5 + with: + distribution: goreleaser + version: latest + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GO_RELEASER_GITHUB_TOKEN }}