fix: add omitempty tags to JSON fields to avoid empty values #86
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 Mac Version | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+' | |
branches-ignore: | |
- '*' | |
jobs: | |
release-macos: | |
if: startsWith(github.ref, 'refs/tags/v') | |
runs-on: macos-latest | |
environment: production | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Golang Installation | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.23' | |
- name: Golang build | |
run: | | |
cd src && go build -o darwin-amd64 | |
- name: Deploy artifact to release ${{ github.ref_name }} | |
uses: AButler/[email protected] | |
with: | |
files: 'src/darwin-amd64' | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
release-tag: ${{ github.ref_name }} |