DeepLX/.github/workflows/build.yml
2023-02-18 20:46:16 +08:00

28 lines
510 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.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 }}