[RELEASE] Windows exe in release (#485)

This commit is contained in:
Jesse Bannon 2023-02-28 22:40:35 -08:00 committed by GitHub
parent 798bbbc62c
commit 196b99ce0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,11 +102,41 @@ jobs:
##################################################################################################
build-windows:
name: build-windows
needs:
- version
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Write version to init file
run: |
echo '${{ needs.version.outputs.init_contents }}'> src/ytdl_sub/__init__.py
- name: Build Package
run: |
python -m pip install -e .
python -m pip install pyinstaller
pyinstaller ytdl-sub.spec
.\dist\ytdl-sub.exe -h
- name: Upload build
uses: actions/upload-artifact@v3
with:
name: ytdl-sub_exe
path: .\dist\ytdl-sub.exe
##################################################################################################
github-release:
name: github-release
needs:
- version
- build-linux
- build-windows
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@ -114,6 +144,12 @@ jobs:
run: |
echo '${{ needs.version.outputs.init_contents }}' > src/ytdl_sub/__init__.py
- name: Restore exe build
uses: actions/download-artifact@v3
with:
name: ytdl-sub_exe
path: /opt/builds
- name: Restore aarch64 build
uses: actions/download-artifact@v3
with:
@ -148,6 +184,7 @@ jobs:
files: |
/opt/builds/ytdl-sub
/opt/builds/ytdl-sub_aarch64
/opt/builds/ytdl-sub.exe
pypi-publish:
name: pypi-publish