DeepLX/.github/workflows/build.yml

28 lines
510 B
YAML
Raw Normal View History

2022-10-20 01:10:20 +08:00
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:
2023-02-18 20:46:16 +08:00
go-version: "1.19"
2022-10-20 01:10:20 +08:00
- run: bash .cross_compile.sh
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: false
files: |
2023-02-18 20:46:16 +08:00
dist/*
2022-10-20 01:10:20 +08:00
env:
GITHUB_TOKEN: ${{ secrets.GT_Token }}