Skip to content

manual build

manual build #3

Workflow file for this run

name: manual build
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
with:
ref: main
- name: build
uses: crazy-max/ghaction-xgo@v3
with:
xgo_version: latest
go_version: latest
dest: dist
targets: windows/amd64,linux/amd64,linux/arm64,darwin/arm64
v: true
x: false
race: false
ldflags: -s -w -linkmode=external -extldflags=-static
buildmode: default
trimpath: true
- uses: actions/upload-artifact@v3
with:
name: wheels
path: dist/
- name: release
uses: softprops/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
dist/*.whl