-
Notifications
You must be signed in to change notification settings - Fork 597
48 lines (47 loc) · 1.33 KB
/
win-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
46
47
48
name: Release for windows
on:
push:
tags:
- v*
workflow_dispatch:
jobs:
build-n-publish:
runs-on: windows-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 .[win32,battery]
- name: Download mpv-1.dll
run: |
choco install curl
curl -L https://github.com/feeluown/FeelUOwn/releases/download/v3.8/mpv-1.dll -o mpv-1.dll
- name: Bundle
run: |
# Add current working directory to path so that mpv-1.dll can be found.
$env:path += ";."
make bundle
- name: Archive
run: |
# List dist to help double check if bundle is ok.
ls dist/
powershell Compress-Archive dist/FeelUOwn dist/FeelUOwn-windows.zip
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: FeelUOwn-windows.zip
path: dist/FeelUOwn-windows.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/FeelUOwn-windows.zip