From c030fc69a2b6a995f1064ecac25a9ccf8b0b0250 Mon Sep 17 00:00:00 2001 From: Jonathan Branan Date: Thu, 25 Jul 2024 13:30:21 -0500 Subject: [PATCH] updating build.yaml --- .gitea/workflows/build.yaml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index d5f7f1d..cdfb260 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -1,10 +1,10 @@ -name: Build Inex Executable -run-name: Deploy to ${{ inputs.deploy_target }} by @${{ gitea.actor }} -on: [push] +name: Build + +on: push jobs: - linux: - runs-on: ubuntu-22.04 + build-linux-binary: + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 @@ -15,7 +15,13 @@ jobs: - run: apt-get install unixodbc -y - run: pip install -r requirements.txt - run: pyinstaller --noconfirm --onefile --console ${{ gitea.workspace }}/inex.py - - uses: actions/upload-artifact@v3 + - uses: softprops/action-gh-release@v2 + - name: Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') with: - name: Inex - path: ${{ gitea.workspace }}/dist/inex \ No newline at end of file + files: ${{ gitea.workspace }}/dist/inex + build-windows-binary: + runs-on: windows + steps: + \ No newline at end of file