From 7c20e460050838cae9e562920f97b1bf18797ffd Mon Sep 17 00:00:00 2001 From: Ryan Gillespie Date: Thu, 23 Mar 2023 02:22:32 -0600 Subject: [PATCH] releaser --- .github/workflows/builds.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/builds.yml diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml new file mode 100644 index 0000000..b46ec2e --- /dev/null +++ b/.github/workflows/builds.yml @@ -0,0 +1,30 @@ +name: CICD-Workflow + +on: + push: + branches: + - main + tags: + - "v*" +env: + GOVER: 1.19.x + CGO_ENABLED: 0 + +jobs: + build-and-release: + if: startsWith(github.ref, 'refs/tags/v') + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Go + uses: actions/setup-go@v3 + with: + go-version: ${{ env.GOVER }} + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 + with: + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +