Add GitHub Actions workflow for automated releases #4
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 Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: pip install -r requirements-dev.txt | |
| - name: Build executable | |
| run: pyinstaller WSLCommander.spec | |
| - name: Zip artifact | |
| run: Compress-Archive -Path dist\WSLCommander -DestinationPath WSLCommander-${{ github.ref_name }}.zip | |
| - name: Upload to GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| name: WSL Commander ${{ github.ref_name }} | |
| body_path: docs/release-notes-${{ github.ref_name }}.md | |
| files: WSLCommander-${{ github.ref_name }}.zip | |