support COM_QUERY with attributes, partially #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
env: | |
GOPATH: ${{ github.workspace }}/.. | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '>=1.20.11' | |
- name: Test before release | |
run: go test ./... | |
- name: Install release tools | |
run: | | |
mkdir -p $(go env GOPATH)/bin/ | |
go install github.com/Songmu/goxz/cmd/[email protected] | |
go install github.com/tcnksm/[email protected] | |
- name: Build release binaries | |
run: | | |
echo ${GITHUB_REF##*/} | |
goxz -d goxz -pv ${GITHUB_REF##*/} -os windows,linux,darwin -arch=amd64 | |
goxz -d goxz -pv ${GITHUB_REF##*/} -os linux,darwin -arch=arm64 | |
- name: Create the release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') }} | |
- name: Upload binaries to the release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
ghr ${GITHUB_REF##*/} goxz | |
# based on: github.com/koron-go/_skeleton/.github/workflows/release.yml |