From c229dec00e695d316497ea2e8133bd49138c2006 Mon Sep 17 00:00:00 2001 From: Mika Meyer <51948405+TheFireMike@users.noreply.github.com> Date: Thu, 2 Apr 2020 17:55:00 +0200 Subject: [PATCH] Create release.yml --- .github/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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..701ae93 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +name: GoReleaser + +on: + push: + tags: + - '*' + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v2 + - + name: Unshallow + run: git fetch --prune --unshallow + - + name: Set up Go + uses: actions/setup-go@v1 + with: + go-version: 1.14.x + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v1 + with: + version: latest + args: release --rm-dist --config .goreleaser.yml + key: ${{ secrets.YOUR_PRIVATE_KEY }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}