DeepLX/.github/workflows/build.yml

30 lines
533 B
YAML
Raw Normal View History

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:
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 }}