Skip to content

v0.5

v0.5 #1

Workflow file for this run

name: go_build
on:
release:
types: [created]
jobs:
build:
name: build_to_release
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux]
goarch: [amd64]
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Read version from release.json
uses: notiz-dev/github-action-json-property@release
id: gorkscrew_version
with:
path: 'release.json'
prop_path: 'version'
- name: Read go_version from release.json
uses: notiz-dev/github-action-json-property@release
id: go_version
with:
path: 'release.json'
prop_path: 'go_version'
- name: Build gorkscrew binary
uses: wangyoucao577/go-release-action@master
with:
github_token: ${{ secrets.TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "https://dl.google.com/go/go${{ steps.go_version.outputs.prop }}.linux-amd64.tar.gz"
ldflags: "-X 'main.GorkscrewVersion=${{ steps.gorkscrew_version.outputs.prop }}' -X 'main.GoVersion=${{ steps.go_version.outputs.prop }}'"