mirror of
https://github.com/OwO-Network/DeepLX.git
synced 2024-11-16 18:42:26 +08:00
30 lines
533 B
YAML
30 lines
533 B
YAML
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
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.19"
|
|
|
|
- run: bash .cross_compile.sh
|
|
|
|
- name: Release
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
draft: false
|
|
files: |
|
|
dist/*
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GT_Token }}
|