Skip to content

Commit

Permalink
Final commit: deploy.yml will only run on new tag and it'll
Browse files Browse the repository at this point in the history
  • Loading branch information
boldar99 committed Nov 24, 2023
1 parent 4376935 commit 11c1a58
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Deploy and relase

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

env:
SRC_DIR: zxlive
Expand Down Expand Up @@ -38,20 +38,16 @@ jobs:
run: pyside6-deploy -v -f -c pysidedeploy.spec --keep-deployment-files
- name: Rename files, fix deployment file location - Windows
if: matrix.os == 'windows-latest'
run: mv build/__main__.exe ./zxlive_windows.exe
run: mv build/__main__.exe ./zxlive_app_windows.exe
- name: Rename files, fix deployment file location - Linux, MacOS
if: matrix.os != 'windows-latest'
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
mv build/__main__.bin ./zxlive_linux.bin
mv build/__main__.bin ./zxlive_app_linux.bin
elif [ "$RUNNER_OS" == "macOS" ]; then
mv zxlive/deployment/__main__.app/Contents/MacOS/__main__ ./zxlive_macos.command
mv zxlive/deployment/__main__.app/Contents/MacOS/__main__ ./zxlive_app_macos.bin
fi
# - name: Release
# uses: softprops/action-gh-release@v1
# with:
# files: zxlive_*
- name: Upload build
uses: actions/upload-artifact@v3
- name: Release
uses: softprops/action-gh-release@v1
with:
path: zxlive_*
files: zxlive_app_*

0 comments on commit 11c1a58

Please sign in to comment.