From a8547d251e95cd9f5d87ab453c668cc476997be7 Mon Sep 17 00:00:00 2001 From: Josh Albrecht Date: Fri, 3 May 2024 15:30:15 -0400 Subject: [PATCH] Init commit --- .github/workflows/release.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..cd4b962 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,33 @@ +--- +name: Run spec tests + +on: + push: + tags: + - "*" + +jobs: + build: + name: Build and release + runs-on: ubuntu-latest + + steps: + - name: Check out repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up Go 1.20.11 + uses: actions/setup-go@v5 + with: + go-version: 1.20.11 + + - name: Run release + uses: goreleaser/goreleaser-action@v5 + if: startsWith(github.ref, 'refs/tags/') + with: + distribution: goreleaser + version: ${{ github.ref_name }} + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file