Skip to content

Commit

Permalink
updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrandall committed Jun 6, 2021
1 parent 66f1807 commit a6ea100
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build Go binaries

# on:
# push:
# tags:
# - "*" # triggers only if push new tag version, like `0.8.4` or else

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master

- name: Make binaries
uses: pcrandall/actions/golang-build@master
with:
github_token: ${{ secrets.GO_RELEASER_REPO_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
pre_command: go mod tidy
release_tag: v1.2
binary_name: "mdclip"
extra_files: LICENSE README.md
args: linux/amd64 windows/amd64 windows/386
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

on:
push:
# branches: [ master ]
tags:
- "*" # triggers only if push new tag version, like `0.8.4` or else
# branches: [ master ]

jobs:
releases-matrix:
Expand All @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
# build and publish in parallel: linux/386, linux/amd64, windows/386, windows/amd64, darwin/amd64
goos: [linux, windows, darwin]
goos: [windows, darwin]
goarch: ["386", amd64]
exclude:
- goarch: "386"
Expand All @@ -22,9 +22,10 @@ jobs:
- uses: actions/checkout@v2
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GO_RELEASER_GITHUB_TOKEN }}
github_token: ${{ secrets.GO_RELEASER_REPO_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: 1.16
pre_command: go mod tidy
release_tag: v1.2
binary_name: "mdclip"
extra_files: LICENSE README.md

0 comments on commit a6ea100

Please sign in to comment.