Skip to content

up

up #5

Workflow file for this run

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