Skip to content

Commit 367adca

Browse files
authored
Add files via upload
1 parent e6d2439 commit 367adca

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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

0 commit comments

Comments
 (0)