diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..d93b15e --- /dev/null +++ b/.github/workflows/build.yml @@ -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 }}