From 429cfbc6c65c7d832bab23466f7be1b903198ccb Mon Sep 17 00:00:00 2001 From: Daniel Orner Date: Fri, 1 Mar 2024 13:44:52 -0500 Subject: [PATCH] CI --- .github/workflows/goreleaser.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/goreleaser.yml diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml new file mode 100644 index 0000000..afbdaf4 --- /dev/null +++ b/.github/workflows/goreleaser.yml @@ -0,0 +1,32 @@ +name: CI + +on: + pull_request: + push: + branches: + - main + workflow_dispatch: + +jobs: + build_and_deploy: + runs-on: [ubuntu-latest] + needs: test + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Setup Go + uses: actions/setup-go@v2 + with: + go-version: '1.21' + - run: git reset --hard + - run: git clean -f -d + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v3 + with: + distribution: goreleaser + version: latest + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}