Skip to content

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

ci: Building and releasing the Windows executable within the pipeline

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

Workflow file for this run

name: Release Windows Build
on:
workflow_dispatch:
inputs:
release_name:
description: "Release name"
required: true
default: "test"
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 --exclude demo dk-installer.py
ls -lR ./dist
gh release delete "${{ github.event.inputs.release_name }}" -y || true
gh release create "${{ github.event.inputs.release_name }}" ./dist/dk-installer/dk-installer.exe \
--title "Latest Release"