chore: bump version to v1.0.0 #2
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 and Release | |
| permissions: | |
| contents: write | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| create-release: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Create Release | |
| id: create_release | |
| uses: actions/create-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: ${{ github.ref_name }} | |
| release_name: Release ${{ github.ref_name }} | |
| body: | | |
| ## Downloads | |
| Choose the correct file for your operating system: | |
| - **Linux**: `aw-nextblock-linux.zip` | |
| - **Windows**: `aw-nextblock-windows.zip` | |
| - **macOS**: `aw-nextblock-macos.zip` | |
| ## Installation | |
| 1. Download and extract the ZIP file | |
| 2. Run `aw-nextblock --help` to see available commands | |
| 3. Configure visualization path if needed | |
| draft: false | |
| prerelease: false | |
| build: | |
| needs: create-release | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-22.04 | |
| name: linux | |
| - os: windows-latest | |
| name: windows | |
| - os: macos-latest | |
| name: macos | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.13' | |
| - name: Install Poetry and dependencies | |
| run: | | |
| pip install poetry==2.2.1 | |
| poetry config virtualenvs.create false | |
| poetry install | |
| pip install pyinstaller | |
| - name: Build with PyInstaller | |
| run: pyinstaller --clean pyinstaller.spec | |
| - name: Create ZIP (Linux/macOS) | |
| if: matrix.name != 'windows' | |
| run: | | |
| cd dist | |
| zip -r ../aw-nextblock-${{ matrix.name }}.zip aw-nextblock/ | |
| cd .. | |
| zip -r aw-nextblock-${{ matrix.name }}.zip visualization/ | |
| - name: Create ZIP (Windows) | |
| if: matrix.name == 'windows' | |
| shell: powershell | |
| run: | | |
| Compress-Archive -Path dist/aw-nextblock/* -DestinationPath aw-nextblock-windows.zip | |
| Expand-Archive -Path aw-nextblock-windows.zip -DestinationPath temp | |
| Copy-Item -Path visualization -Destination temp/visualization -Recurse | |
| Remove-Item aw-nextblock-windows.zip | |
| Compress-Archive -Path temp/* -DestinationPath aw-nextblock-windows.zip | |
| - name: Upload Release Asset | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ needs.create-release.outputs.upload_url }} | |
| asset_path: ./aw-nextblock-${{ matrix.name }}.zip | |
| asset_name: aw-nextblock-${{ matrix.name }}.zip | |
| asset_content_type: application/zip |