Skip to content

Commit

Permalink
Add github workflow for automatic releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitive committed Jul 25, 2020
1 parent 7653e49 commit c82c114
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on:
release:
types:
- created
tags:
- 'v*'

name: Create Release

jobs:
releases:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
# build and publish in parallel: linux/amd64, windows/amd64, darwin/amd64
goos: [linux, windows, darwin]
goarch: [amd64]
steps:
- uses: actions/checkout@v2

- name: Set RELEASE_VERSION
id: get_version
run: echo ::set-output name=RELEASE_VERSION::${GITHUB_REF/refs\/tags\//}

- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "1.14"

0 comments on commit c82c114

Please sign in to comment.