Skip to content

Commit

Permalink
ci: try this templat
Browse files Browse the repository at this point in the history
  • Loading branch information
mewejo committed Feb 7, 2023
1 parent cb23d73 commit 9948ae6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 18 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/build.yaml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release binaries

on:
release:
types: [created]

jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
# build and publish in parallel: linux/amd64
goos: [linux]
goarch: [amd64, arm64]
steps:
- uses: actions/checkout@v2
- name: Run tests
run: go test -v -p=1 -timeout=0 ./...
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
project_path: "./cmd/main.go"
binary_name: "go-watering"
ldflags: "-s -w"
extra_files: LICENSE.md README.md

0 comments on commit 9948ae6

Please sign in to comment.