Skip to content

Test

Test #13

Workflow file for this run

name: Release Go Binaries
on:
release:
types: [created]
jobs:
releases-matrix:
name: Release Matrix
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows]
goarch: [amd64]
steps:
- name: Get Release Info
run: |
{
echo "RELEASE_TAG=${GITHUB_REF/refs\/tags\//}"
echo "BUILD_TIME=$(date)"
} >> "$GITHUB_ENV"
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1.40
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "1.20"
binary_name: "gosecure"
ldflags: -X "main.appVersion=${{ env.RELEASE_TAG }}" -X "main.appBuild=${{ env.BUILD_TIME }}"
extra_files: LICENSE README.md