From 6f499057aafdcfa452a17c8595fa2c8dc436b159 Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Thu, 3 Jul 2025 11:32:28 +0200 Subject: [PATCH] =?UTF-8?q?chore(workflow):=20=F0=9F=9A=80=20Add=20release?= =?UTF-8?q?=20and=20test=20build=20GitHub=20Actions=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Introduced a new workflow for managing releases and test builds. - Configured jobs for publishing, deploying documentation, and building GUI assets for multiple platforms. - Set up environment variables and matrix strategy for cross-platform builds. --- ...on-release-master.yml => release-or-test-build.yml} | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) rename .github/workflows/{on-release-master.yml => release-or-test-build.yml} (95%) diff --git a/.github/workflows/on-release-master.yml b/.github/workflows/release-or-test-build.yml similarity index 95% rename from .github/workflows/on-release-master.yml rename to .github/workflows/release-or-test-build.yml index 44cc708..bed377d 100644 --- a/.github/workflows/on-release-master.yml +++ b/.github/workflows/release-or-test-build.yml @@ -1,4 +1,4 @@ -name: release-master +name: release-or-test-build permissions: contents: write @@ -14,6 +14,8 @@ on: push: tags: - "v*.*.*" + branches: + - "test-build" env: ASSET_EXTENSION: ".zip" @@ -27,6 +29,7 @@ env: jobs: publish: + if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-24.04 steps: - name: Check out @@ -53,6 +56,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} deploy-docs: + if: startsWith(github.ref, 'refs/tags/') needs: publish runs-on: ubuntu-24.04 steps: @@ -87,7 +91,8 @@ jobs: echo "ARCH_WINDOWS_X64=${{ env.ARCH_WINDOWS_X64 }}" >> $GITHUB_OUTPUT echo "ARCH_WINDOWS_ARM64=${{ env.ARCH_WINDOWS_ARM64 }}" >> $GITHUB_OUTPUT build-gui-and-upload-assets: - needs: ["publish", "compute"] + needs: ["compute"] + if: always() && needs.compute.result == 'success' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/test-build') strategy: fail-fast: false matrix: @@ -159,6 +164,7 @@ jobs: - name: Build with pyinstaller for ${{matrix.TARGET}} run: ${{matrix.CMD_BUILD}} - name: Upload Release Asset + if: startsWith(github.ref, 'refs/tags/') id: upload-release-asset uses: softprops/action-gh-release@v2 env: