From 1cfbd80284fe053ab74c99cba0148a0122de770b Mon Sep 17 00:00:00 2001 From: bvanvugt <1531419+bvanvugt@users.noreply.github.com> Date: Thu, 10 Dec 2020 21:11:03 -0800 Subject: [PATCH] goreleaser github action --- .github/workflows/release.yml | 29 ++++++++++++++++++++++++ .github/workflows/{main.yml => test.yml} | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml rename .github/workflows/{main.yml => test.yml} (99%) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..3c9c4b0 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +name: Release (goreleaser) + +on: + push: + tags: + - '*' + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - + name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.15 + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 + with: + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/main.yml b/.github/workflows/test.yml similarity index 99% rename from .github/workflows/main.yml rename to .github/workflows/test.yml index 994e964..88e56b2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: Main +name: Test on: [push, pull_request]