Skip to content

Commit

Permalink
Add binary release action
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayberk Yilmaz committed Apr 30, 2021
1 parent 2150908 commit 93f8510
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release_binaries.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
on:
release:
types: [created]

jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows]
goarch: [amd64]
steps:
- uses: actions/checkout@v2
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "https://dl.google.com/go/go1.13.1.linux-amd64.tar.gz"
project_path: "./cmd/aws-cloud-controller-manager/main.go"
binary_name: "aws-cloud-controller-manager"
ldflags: "-w -s -X 'main.version=$(VERSION)'"

0 comments on commit 93f8510

Please sign in to comment.