From 6cf3f77c79ff916f50098ff20718bb60b01ae67e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Mon, 4 May 2020 18:17:20 +0200 Subject: Github workflows. Including release --- .github/workflows/go.yml | 6 +----- .github/workflows/release.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/release.yml (limited to '.github') diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 3f92c8d..296bad1 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -19,16 +19,12 @@ jobs: go-version: 1.14 id: go - - name: Check out code into the Go module directory + - name: Checkout 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 ./... diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..2c06d11 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,28 @@ +name: release + +on: + push: + tags: + - 'v*' + +jobs: + goreleaser: + name: Release + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.14 + uses: actions/setup-go@v1 + with: + go-version: 1.14 + id: go + + - name: Checkout + uses: actions/checkout@v2 + + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v1 + with: + version: latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -- cgit v1.2.3