Skip to content

Merge pull request #24 from nebulabroadcast/develop #22

Merge pull request #24 from nebulabroadcast/develop

Merge pull request #24 from nebulabroadcast/develop #22

Workflow file for this run

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