[RELEASE] Windows exe in release (#485)
This commit is contained in:
parent
798bbbc62c
commit
196b99ce0e
1 changed files with 37 additions and 0 deletions
37
.github/workflows/release.yaml
vendored
37
.github/workflows/release.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue