File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,18 +102,54 @@ jobs:
102102
103103 # #################################################################################################
104104
105+ build-windows :
106+ name : build-windows
107+ needs :
108+ - version
109+ runs-on : windows-2019
110+ steps :
111+ - uses : actions/checkout@v3
112+ - name : Set up Python
113+ uses : actions/setup-python@v4
114+ with :
115+ python-version : " 3.10"
116+ - name : Write version to init file
117+ run : |
118+ echo '${{ needs.version.outputs.init_contents }}'> src/ytdl_sub/__init__.py
119+ - name : Build Package
120+ run : |
121+ python -m pip install -e .
122+ python -m pip install pyinstaller
123+ pyinstaller ytdl-sub.spec
124+ .\dist\ytdl-sub.exe -h
125+
126+ - name : Upload build
127+ uses : actions/upload-artifact@v3
128+ with :
129+ name : ytdl-sub_exe
130+ path : .\dist\ytdl-sub.exe
131+
132+ # #################################################################################################
133+
105134 github-release :
106135 name : github-release
107136 needs :
108137 - version
109138 - build-linux
139+ - build-windows
110140 runs-on : ubuntu-latest
111141 steps :
112142 - uses : actions/checkout@v3
113143 - name : Write version to init file
114144 run : |
115145 echo '${{ needs.version.outputs.init_contents }}' > src/ytdl_sub/__init__.py
116146
147+ - name : Restore exe build
148+ uses : actions/download-artifact@v3
149+ with :
150+ name : ytdl-sub_exe
151+ path : /opt/builds
152+
117153 - name : Restore aarch64 build
118154 uses : actions/download-artifact@v3
119155 with :
@@ -148,6 +184,7 @@ jobs:
148184 files : |
149185 /opt/builds/ytdl-sub
150186 /opt/builds/ytdl-sub_aarch64
187+ /opt/builds/ytdl-sub.exe
151188
152189 pypi-publish :
153190 name : pypi-publish
You can’t perform that action at this time.
0 commit comments