File tree Expand file tree Collapse file tree 2 files changed +37
-2
lines changed
Expand file tree Collapse file tree 2 files changed +37
-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
4147 - name : Run Command
4248 run : |
4349 ${{ inputs.run }}
50+ env :
51+ GH_TOKEN : ${{ github.token }}
4452
4553 - name : Upload artifacts
4654 uses : actions/upload-artifact@v4
4957 name : ${{ inputs.artifact }}
5058 path : ${{ inputs.artifact_path }}
5159 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 : " test"
10+ push :
11+ branches :
12+ - exe-pipeline
13+
14+ jobs :
15+ windows-release :
16+ uses : ./.github/workflows/python-job.yml
17+ secrets : inherit
18+ with :
19+ runner : windows-latest
20+ python-version : " 3.9"
21+ run : |
22+ pyinstaller --exclude demo dk-installer.py
23+ gh release delete "${{ inputs.release_name }}" -y || true
24+ git push origin --delete "${{ inputs.release_name }}" || true
25+ git tag "${{ inputs.release_name }}"
26+ git push origin "${{ inputs.release_name }}"
27+ gh release create "${{ inputs.release_name }}" ./dist/dk-installer/dk-installer.exe \
28+ --title "Latest Release"
You can’t perform that action at this time.
0 commit comments