tag: bump version to 0.15.0 #27
Workflow file for this run
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: release | |
| on: | |
| push: | |
| tags: | |
| - "v*.*.*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-and-release: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.13" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install wheel | |
| pip install pyinstaller pyinstaller-versionfile | |
| $(if (Test-Path requirements.txt) { pip install -r requirements.txt }) | |
| - name: Generate versionfile | |
| run: | | |
| create-version-file.exe versionfile.yaml --outfile versionfile | |
| - name: Build executable | |
| run: | | |
| pyinstaller.exe BF2AutoSpectator\spectate.py --onefile --clean --name="BF2AutoSpectator" --add-data="pickle/*.pickle;pickle/" --add-data="redist/*.exe;redist/" --version-file="versionfile" | |
| - name: Create release archive | |
| run: | | |
| Compress-Archive -Path "dist\BF2AutoSpectator.exe","overrides" -DestinationPath BF2AutoSpectator-${{ github.ref_name }}.zip | |
| - name: Create release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: BF2AutoSpectator-${{ github.ref_name }}.zip* | |
| draft: true | |
| generate_release_notes: true | |
| name: BF2AutoSpectator ${{ github.ref_name }} | |
| body: This is the ${{ github.ref_name }} release of the BF2 auto spectator. |