File tree Expand file tree Collapse file tree 2 files changed +33
-2
lines changed
Expand file tree Collapse file tree 2 files changed +33
-2
lines changed Original file line number Diff line number Diff line change 66 python-version :
77 type : string
88 default : " 3.9"
9+ runner :
10+ type : string
11+ default : ubuntu-latest
912 run :
1013 required : true
1114 type : string
2023
2124jobs :
2225 run :
23- runs-on : ubuntu-latest
26+ runs-on : ${{ inputs.runner }}
27+ defaults :
28+ run :
29+ shell : bash
2430 steps :
2531 - name : Checkout source code
2632 uses : actions/checkout@v4
4955 name : ${{ inputs.artifact }}
5056 path : ${{ inputs.artifact_path }}
5157 if-no-files-found : ignore
52-
Original file line number Diff line number Diff line change 1+ name : Release Windows Build
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ release_name :
7+ description : " Release name"
8+ required : true
9+ default : " latest"
10+
11+ jobs :
12+ windows-release :
13+ uses : ./.github/workflows/python-job.yml
14+ secrets : inherit
15+ with :
16+ runner : windows-latest
17+ python-version : " 3.9"
18+ release_name : test
19+ run : |
20+ pyinstaller --exclude demo dk-installer.py
21+ ls -lR ./dist
22+
23+ echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
24+ gh release delete "${{ github.event.inputs.release_name }}" -y || true
25+ gh release create "${{ github.event.inputs.release_name }}" ./dist/dk-installer/dk-installer.exe \
26+ --title "Latest Release"
You can’t perform that action at this time.
0 commit comments