ci: Building and releasing the Windows executable within the pipeline #1
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: | ||
| workflow_dispatch: | ||
| inputs: | ||
| release_name: | ||
| description: "Release name" | ||
| required: true | ||
| default: "latest" | ||
| jobs: | ||
| windows-release: | ||
| uses: ./.github/workflows/python-job.yml | ||
| secrets: inherit | ||
| with: | ||
| runner: windows-latest | ||
| python-version: "3.9" | ||
| release_name: test | ||
| run: | | ||
| pyinstaller --exclude demo dk-installer.py | ||
| ls -lR ./dist | ||
| echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token | ||
| 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" | ||