2022-10-20 01:10:20 +08:00
|
|
|
on:
|
|
|
|
push:
|
2023-03-03 00:55:09 +08:00
|
|
|
tags:
|
|
|
|
- 'v*'
|
2022-10-20 01:10:20 +08:00
|
|
|
pull_request:
|
|
|
|
|
2023-11-20 08:26:07 +08:00
|
|
|
name: Release
|
2022-10-20 01:10:20 +08:00
|
|
|
jobs:
|
|
|
|
|
|
|
|
Build:
|
|
|
|
if: startsWith(github.ref, 'refs/tags/v')
|
2024-03-07 22:56:46 +08:00
|
|
|
runs-on: ubuntu-latest
|
2022-10-20 01:10:20 +08:00
|
|
|
steps:
|
2023-11-20 08:33:09 +08:00
|
|
|
- uses: actions/checkout@v4
|
2022-10-20 01:10:20 +08:00
|
|
|
|
2023-11-20 08:33:09 +08:00
|
|
|
- uses: actions/setup-go@v4
|
2022-10-20 01:10:20 +08:00
|
|
|
with:
|
2024-10-08 07:25:36 +08:00
|
|
|
go-version: "1.23.2"
|
2022-10-20 01:10:20 +08:00
|
|
|
|
|
|
|
- run: bash .cross_compile.sh
|
|
|
|
|
|
|
|
- name: Release
|
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
|
with:
|
|
|
|
draft: false
|
2024-03-16 02:49:40 +08:00
|
|
|
generate_release_notes: true
|
2022-10-20 01:10:20 +08:00
|
|
|
files: |
|
2023-02-18 20:46:16 +08:00
|
|
|
dist/*
|