From 656800438c4bdb82d2562cf8b4c8a327b27694e7 Mon Sep 17 00:00:00 2001 From: Esa Firman Date: Wed, 9 Sep 2020 20:21:41 +0700 Subject: [PATCH] format the workflow --- .github/workflows/gadb.yaml | 41 ++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/.github/workflows/gadb.yaml b/.github/workflows/gadb.yaml index c93915e..39b578b 100644 --- a/.github/workflows/gadb.yaml +++ b/.github/workflows/gadb.yaml @@ -2,35 +2,34 @@ name: Go on: push: - branches: [ master ] + branches: [master] tags: - '*' pull_request: - branches: [ master ] -F + 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.13 + id: go - - name: Set up Go 1.x - uses: actions/setup-go@v2 - with: - go-version: ^1.13 - id: go - - - name: Check out code into the Go module directory - uses: actions/checkout@v2 + - name: Check out code into the Go module directory + uses: actions/checkout@v2 - - name: Build - run: go build -v . + - name: Build + run: go build -v . - - name: 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 }} + - name: 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 }}