Delete .github/workflows/1 #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |