Skip to content

Commit

Permalink
ci: bundle nightly version (try 1/n) (#845)
Browse files Browse the repository at this point in the history
  • Loading branch information
cosven authored Jun 30, 2024
1 parent 4d1f4aa commit 939151e
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/macos-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,20 @@ on:
push:
tags:
- v*
branches:
- master
workflow_dispatch:

jobs:
build-n-publish:
runs-on: macos-latest

runs-on: ${{ matrix.os }}
strategy:
# Allow some jobs fail.
fail-fast: false
matrix:
os: [macos-latest, macos-13, macos-12]

steps:
- uses: actions/checkout@master
- name: Set up Python
Expand All @@ -19,7 +28,7 @@ jobs:
python -m pip install --upgrade pip
pip install pyqt5
pip install pyinstaller
pip install -e .[macos,battery]
pip install -e .[macos,battery,cookies,ytdl]
- name: Install libmpv
run: |
brew install mpv
Expand All @@ -30,7 +39,11 @@ jobs:
run: |
# List dist to help double check if bundle is ok.
ls dist/
cd dist/ && zip FeelUOwnX.zip -r FeelUOwnX.app/
arch=`uname -m`
macos_version=`sw_vers -productVersion`
echo "DIST_ARCH=${arch}" >> $GITHUB_ENV
echo "DIST_MACOS_VERSION=${macos_version}" >> $GITHUB_ENV
cd dist/ && zip FeelUOwnX-macOS${macos_version}-${arch}.zip -r FeelUOwnX.app/
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
Expand All @@ -42,4 +55,12 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: dist/FeelUOwnX.zip
files: dist/FeelUOwnX-macOS{{ env.DIST_MACOS_VERSION }}-{{ env.DIST_ARCH }.zip
- name: Upload to release page
if: startsWith(github.ref, 'master')
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: dist/FeelUOwnX-macOS{{ env.DIST_MACOS_VERSION }}-{{ env.DIST_ARCH }.zip
tag_name: nightly

0 comments on commit 939151e

Please sign in to comment.