Skip to content

Commit

Permalink
format the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
esafirm committed Sep 9, 2020
1 parent 7f04b12 commit 6568004
Showing 1 changed file with 20 additions and 21 deletions.
41 changes: 20 additions & 21 deletions .github/workflows/gadb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 6568004

Please sign in to comment.