-
Notifications
You must be signed in to change notification settings - Fork 595
45 lines (44 loc) · 1.08 KB
/
macos-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Release for macos
on:
push:
tags:
- v*
workflow_dispatch:
jobs:
build-n-publish:
runs-on: macos-latest
steps:
- uses: actions/checkout@master
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.10"
- name: Build
run: |
python -m pip install --upgrade pip
pip install pyqt5
pip install pyinstaller
pip install -e .[macos,battery]
- name: Install libmpv
run: |
brew install mpv
- name: Bundle
run: |
make bundle
- name: Archive
run: |
# List dist to help double check if bundle is ok.
ls dist/
cd dist/ && zip FeelUOwnX.zip -r FeelUOwnX.app/
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: FeelUOwnX.zip
path: dist/FeelUOwnX.zip
- name: Upload to release page
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: dist/FeelUOwnX.zip