-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (48 loc) · 1.52 KB
/
main.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
49
50
51
52
53
54
55
56
name: Build windows binary
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Download libmpv
run: |
$url = 'https://repo.imm.cz/mpv-1.dll'
$path = './mpv-1.dll'
Invoke-WebRequest -Uri $url -OutFile $path
- name: Build exe with pyinstaller
shell: bash
run: |
python -m pip install --upgrade pip
pip uninstall pyside6 shiboken6 poetry -y
pip install poetry==1.3.2
poetry install --no-interaction --no-ansi
make build
- name: Get the version
id: get_version
uses: SebRollen/[email protected]
with:
file: 'pyproject.toml'
field: 'tool.poetry.version'
- name: Create zip
uses: thedoctor0/[email protected]
with:
type: 'zip'
directory: dist
filename: firefly-${{ steps.get_version.outputs.value }}-win.zip
- uses: ncipollo/release-action@v1
with:
artifacts: dist/firefly-${{ steps.get_version.outputs.value }}-win.zip
tag: v${{ steps.get_version.outputs.value }}
name: Firefly ${{ steps.get_version.outputs.value }}
body: Firefly version ${{ steps.get_version.outputs.value }}
allowUpdates: true
draft: true
prerelease: false