Skip to content

ci: Building and releasing the Windows executable within the pipeline #10

ci: Building and releasing the Windows executable within the pipeline

ci: Building and releasing the Windows executable within the pipeline #10

Workflow file for this run

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"