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.
This commit is contained in:
+8
-2
@@ -1,4 +1,4 @@
|
|||||||
name: release-master
|
name: release-or-test-build
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@@ -14,6 +14,8 @@ on:
|
|||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "v*.*.*"
|
- "v*.*.*"
|
||||||
|
branches:
|
||||||
|
- "test-build"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
ASSET_EXTENSION: ".zip"
|
ASSET_EXTENSION: ".zip"
|
||||||
@@ -27,6 +29,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- name: Check out
|
- name: Check out
|
||||||
@@ -53,6 +56,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
deploy-docs:
|
deploy-docs:
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
needs: publish
|
needs: publish
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
@@ -87,7 +91,8 @@ jobs:
|
|||||||
echo "ARCH_WINDOWS_X64=${{ env.ARCH_WINDOWS_X64 }}" >> $GITHUB_OUTPUT
|
echo "ARCH_WINDOWS_X64=${{ env.ARCH_WINDOWS_X64 }}" >> $GITHUB_OUTPUT
|
||||||
echo "ARCH_WINDOWS_ARM64=${{ env.ARCH_WINDOWS_ARM64 }}" >> $GITHUB_OUTPUT
|
echo "ARCH_WINDOWS_ARM64=${{ env.ARCH_WINDOWS_ARM64 }}" >> $GITHUB_OUTPUT
|
||||||
build-gui-and-upload-assets:
|
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:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -159,6 +164,7 @@ jobs:
|
|||||||
- name: Build with pyinstaller for ${{matrix.TARGET}}
|
- name: Build with pyinstaller for ${{matrix.TARGET}}
|
||||||
run: ${{matrix.CMD_BUILD}}
|
run: ${{matrix.CMD_BUILD}}
|
||||||
- name: Upload Release Asset
|
- name: Upload Release Asset
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
id: upload-release-asset
|
id: upload-release-asset
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
env:
|
env:
|
||||||
Reference in New Issue
Block a user