From ef9691177dae5ec86786fc16e0b1a7ae2c65b8d9 Mon Sep 17 00:00:00 2001 From: s008nyx Date: Sun, 25 Apr 2021 09:26:18 +0300 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 58ee44a..89b1c2e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,21 +5,24 @@ on: - v* jobs: - release: - name: Release on GitHub + goreleaser: runs-on: ubuntu-latest steps: - - name: Check out code - uses: actions/checkout@v1 - - - name: Validates GO releaser config - uses: docker://goreleaser/goreleaser:latest + - + name: Checkout + uses: actions/checkout@v2 with: - args: check - - - name: Create release on GitHub - uses: docker://goreleaser/goreleaser:latest + fetch-depth: 0 + - + name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.16 + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 with: - args: release + version: latest + args: release --rm-dist env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}