From 5f58c654ef60e89e0800813997600bb2705525f4 Mon Sep 17 00:00:00 2001 From: Dawid 'DeyV' Polak Date: Fri, 23 Oct 2020 22:58:16 +0200 Subject: [PATCH] Update and rename go.yml to goreleaser.yml --- .github/workflows/go.yml | 36 -------------------------------- .github/workflows/goreleaser.yml | 28 +++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 36 deletions(-) delete mode 100644 .github/workflows/go.yml create mode 100644 .github/workflows/goreleaser.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml deleted file mode 100644 index ca91bee..0000000 --- a/.github/workflows/go.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Go - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - - build: - name: Build - runs-on: ubuntu-latest - steps: - - - name: Set up Go 1.x - uses: actions/setup-go@v2 - with: - go-version: ^1.15 - - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - - name: Get dependencies - run: | - go get -v -t -d ./... - if [ -f Gopkg.toml ]; then - curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh - dep ensure - fi - - - name: Build - run: go build -v . - - # - name: Test - # run: go test -v . diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml new file mode 100644 index 0000000..787701b --- /dev/null +++ b/.github/workflows/goreleaser.yml @@ -0,0 +1,28 @@ +name: goreleaser + +on: + pull_request: + push: + +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.14 + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 + with: + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}