-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.02 KB
/
Copy pathbuild.yml
File metadata and controls
45 lines (37 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Build
on:
push:
branches: [main]
tags: ["v*"]
pull_request:
branches: [main]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Install PyInstaller
run: pip install pyinstaller
- name: Build
run: python -m PyInstaller --onefile --windowed --name inject --distpath dist --workpath build --clean inject.py
- name: Copy inject.txt to dist
run: copy inject.txt dist\inject.txt
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: inject
path: |
dist/inject.exe
dist/inject.txt
- name: Create Release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v2
with:
files: |
dist/inject.exe
dist/inject.txt
generate_release_notes: true