From c277bc862e74a571e4cf8c8fd7adedc173265bdb Mon Sep 17 00:00:00 2001 From: chirst Date: Tue, 2 Jul 2024 00:44:06 -0600 Subject: [PATCH] releaser --- .github/workflows/release.yml | 28 ++++++++++++++++++++++++++ .github/workflows/{go.yml => test.yml} | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml rename .github/workflows/{go.yml => test.yml} (96%) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..25542fd --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,28 @@ +name: Release +on: + push: + tags: + - '*' +permissions: + contents: write +jobs: + release: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v4 + - + name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '1.22' + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v6 + with: + distribution: goreleaser + version: 'latest' + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/go.yml b/.github/workflows/test.yml similarity index 96% rename from .github/workflows/go.yml rename to .github/workflows/test.yml index 7365312..6ea2216 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: Go +name: Test on: push: branches: [ "main" ]