Skip to content

Commit

Permalink
updated action
Browse files Browse the repository at this point in the history
  • Loading branch information
eze-kiel committed Apr 21, 2021
1 parent b98ff25 commit 108b16c
Showing 1 changed file with 33 additions and 23 deletions.
56 changes: 33 additions & 23 deletions .github/workflows/release_binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,40 @@ on:
pull_request:

jobs:
build:
main:
- ./cmd/slowql-digest/
- ./cmd/slowql-replayer/
builds:
- main: ./cmd/slowql-digest/
id: "digest"
binary: digest_{{ .Version }}_{{ .OS }}_{{ .Arch }}
goos:
- linux
- darwin
- windows

- main: ./cmd/slowql-replayer/
id: "replayer"
binary: replayer_{{ .Version }}_{{ .OS }}_{{ .Arch }}
goos:
- linux
- darwin
- windows

name: GoReleaser build
runs-on: ubuntu-latest

steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Go 1.16
uses: actions/setup-go@v2
with:
go-version: 1.16
id: go

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go 1.16
uses: actions/setup-go@v2
with:
go-version: 1.16
id: go
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 108b16c

Please sign in to comment.