Skip to content

Commit

Permalink
Added Github Actions workflow to build ChopChop (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulSec authored Jun 28, 2020
1 parent 9e9308b commit 558a064
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
on: push
name: Build ChopChop
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.14.x
- name: Checkout code
uses: actions/checkout@v2
- name: Install gox
run: go get github.com/mitchellh/gox
- name: Build using gox
run: gox -ldflags "-X main.Version=$BUILD_VERSION -X main.BuildDate=$BUILD_DATE" -output "dist/ChopChop_{{.OS}}_{{.Arch}}"
- name: Release
uses: fnkr/github-action-ghr@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GHR_COMPRESS: xz
GHR_PATH: dist/
GITHUB_TOKEN: ${{ secrets.DEPLOY_TOKEN }}

0 comments on commit 558a064

Please sign in to comment.