v0.6.4 #21
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: Build Windows Executable | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| build-windows: | |
| name: Build Windows executable | |
| runs-on: windows-latest | |
| permissions: | |
| contents: write # Required to upload release assets | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' # Using '3.x' for consistency with pypi publish workflow | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pyinstaller | |
| pip install . # Install the package itself and its dependencies | |
| - name: Build executable with PyInstaller | |
| run: pyinstaller --onefile --name tinycoder_windows run_tinycoder.py | |
| - name: Upload Release Asset | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ github.event.release.upload_url }} | |
| asset_path: ./dist/tinycoder_windows.exe | |
| asset_name: tinycoder_windows.exe | |
| asset_content_type: application/vnd.microsoft.portable-executable |