mirror of
https://github.com/OwO-Network/DeepLX.git
synced 2024-11-16 17:32:21 +08:00
40 lines
976 B
YAML
40 lines
976 B
YAML
on:
|
|
push:
|
|
pull_request:
|
|
|
|
name: Build Release
|
|
jobs:
|
|
|
|
Build:
|
|
if: startsWith(github.ref, 'refs/tags/v')
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-go@v2
|
|
with:
|
|
go-version: "1.18"
|
|
|
|
- run: bash .cross_compile.sh
|
|
|
|
- name: Release
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
draft: false
|
|
files: |
|
|
dist/deeplx_darwin_amd64
|
|
dist/deeplx_darwin_arm64
|
|
dist/deeplx_linux_386
|
|
dist/deeplx_linux_amd64
|
|
dist/deeplx_linux_arm64
|
|
dist/deeplx_linux_armv7
|
|
dist/deeplx_linux_mips
|
|
dist/deeplx_openbsd_amd64
|
|
dist/deeplx_openbsd_arm64
|
|
dist/deeplx_freebsd_amd64
|
|
dist/deeplx_freebsd_arm64
|
|
dist/deeplx_windows_amd64.exe
|
|
dist/deeplx_windows_386.exe
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GT_Token }}
|