Skip to content

go_build

go_build #4

Workflow file for this run

name: go_build
on:
workflow_run:
workflows: [new_release]
types: [completed]
jobs:
build:
name: Build to release
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, darwin]
goarch: [amd64]
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Read version from release.json
uses: notiz-dev/github-action-json-property@release
id: dex_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 dex binary
uses: wangyoucao577/go-release-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
project_path: ./cmd/main
release_tag: v${{ steps.dex_version.outputs.prop }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: https://dl.google.com/go/go${{ steps.go_version.outputs.prop }}.linux-amd64.tar.gz
extra_files: LICENSE README.md