Skip to content

Commit

Permalink
Finalizing deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
boldar99 committed Nov 24, 2023
1 parent bace0c1 commit 6e2e6bb
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: deploy
name: Deploy and relase

on:
push:
# tags:
# - '*'
# - "v*.*.*"

env:
SRC_DIR: zxlive
Expand All @@ -22,13 +22,8 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Fix pysidedeploy.spec file - Specific to MacOS
if: matrix.os == 'macos-latest'
run: |
sed -i '' '48i\
--macos-create-app-bundle\
' pysidedeploy.spec
- name: Download Dependencies executable instead of Dependency Walker - Specific to Windows
- name: Download Dependency Walker - Specific to Windows
# If this is not done, Nuitka crashes weirdly.
if: matrix.os == 'windows-latest'
run: |
Invoke-WebRequest -Uri 'https://dependencywalker.com/depends22_x86.zip' -OutFile 'depends22_x86.zip'
Expand All @@ -41,11 +36,20 @@ jobs:
pip install .
- name: Build ZXLive
run: pyside6-deploy -v -f -c pysidedeploy.spec --keep-deployment-files
- name: Fix deployment file location - Specific to MacOS
if: matrix.os == 'macos-latest'
run: mv zxlive/deployment/__main__.app/Contents/MacOS/__main__ build/__main__.bin
- name: Rename files, fix deployment file location
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
mv build/__main__.bin ./zxlive_linux.bin
elif [ "$RUNNER_OS" == "Windows" ]; then
mv build/__main__.bin ./zxlive_windows.exe
elif [ "$RUNNER_OS" == "macOS" ]; then
mv zxlive/deployment/__main__.app/Contents/MacOS/__main__ ./zxlive_macos.command
fi
# - name: Release
# uses: softprops/action-gh-release@v1
# with:
# files: zxlive_*
- name: Upload build
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}
path: build/*
path: zxlive_*

0 comments on commit 6e2e6bb

Please sign in to comment.