File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ push :
5+ branches : [main]
6+ tags : ["v*"]
7+ pull_request :
8+ branches : [main]
9+
10+ jobs :
11+ build :
12+ runs-on : windows-latest
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - name : Set up Python 3.8
17+ uses : actions/setup-python@v5
18+ with :
19+ python-version : " 3.8"
20+
21+ - name : Install PyInstaller
22+ run : pip install pyinstaller
23+
24+ - name : Build
25+ run : python -m PyInstaller --onefile --windowed --name inject --distpath dist --workpath build --clean inject.py
26+
27+ - name : Copy inject.txt to dist
28+ run : copy inject.txt dist\inject.txt
29+
30+ - name : Upload artifact
31+ uses : actions/upload-artifact@v4
32+ with :
33+ name : inject
34+ path : |
35+ dist/inject.exe
36+ dist/inject.txt
37+
38+ - name : Create Release
39+ if : startsWith(github.ref, 'refs/tags/v')
40+ uses : softprops/action-gh-release@v2
41+ with :
42+ files : |
43+ dist/inject.exe
44+ dist/inject.txt
45+ generate_release_notes : true
You can’t perform that action at this time.
0 commit comments