ci: Building and releasing the Windows executable within the pipeline #10
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release Windows Build | |
| on: | |
| push: | |
| branches: | |
| - exe-pipeline | |
| jobs: | |
| windows-release: | |
| uses: ./.github/workflows/python-job.yml | |
| secrets: inherit | |
| with: | |
| runner: windows-latest | |
| python-version: "3.9" | |
| run: | | |
| pyinstaller --onefile --exclude demo dk-installer.py | |
| export RELEASE_TAG=test-release | |
| gh release delete "${RELEASE_TAG}" -y || true | |
| git push origin --delete "${RELEASE_TAG}" || true | |
| git tag "${RELEASE_TAG}" | |
| git push origin "${RELEASE_TAG}" | |
| gh release create "${RELEASE_TAG}" ./dist/dk-installer.exe \ | |
| --title "Latest Release" |