summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2025-07-03 11:32:28 +0200
committerRobert Honz <exislow+github@gmail.com>2025-07-03 11:32:28 +0200
commit6f499057aafdcfa452a17c8595fa2c8dc436b159 (patch)
tree23033df37fa97806ff413b0b22f26837b3b0ebb5
parentfa1ea1fc87344d34c1f86f21b2c6b7afafff45bd (diff)
downloadtidal-dl-ng-6f499057aafdcfa452a17c8595fa2c8dc436b159.tar.gz
chore(workflow): 🚀 Add release and test build GitHub Actions workflow
- 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.
-rw-r--r--.github/workflows/release-or-test-build.yml (renamed from .github/workflows/on-release-master.yml)10
1 files changed, 8 insertions, 2 deletions
diff --git a/.github/workflows/on-release-master.yml b/.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: