mirror of
https://github.com/OwO-Network/DeepLX.git
synced 2024-11-16 07:52:19 +08:00
Create build.yml
This commit is contained in:
parent
9d6eebd691
commit
548237e176
37
.github/workflows/build.yml
vendored
Normal file
37
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
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
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GT_Token }}
|
Loading…
Reference in New Issue
Block a user