diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..797b781 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: Testing + +on: + release: + types: + - created + +jobs: + goreleaser: + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v2 + - name: Unshallow + run: git fetch --prune --unshallow + - name: Set up Go + uses: actions/setup-go@v2 + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 25442a3..7e6f2e4 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -5,9 +5,6 @@ on: branches: [ master ] pull_request: branches: [ master ] - release: - types: - - created jobs: lint: