Skip to content

chore: bump version to v1.0.0 #6

chore: bump version to v1.0.0

chore: bump version to v1.0.0 #6

Workflow file for this run

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. You'll find `aw-nextblock` (or `aw-nextblock.exe` on Windows) and the `visualization/` folder
3. Run `./aw-nextblock --help` to see available commands
draft: false
prerelease: false
build:
needs: create-release
strategy:
matrix:
include:
- os: ubuntu-22.04
name: linux
binary: aw-nextblock
- os: windows-latest
name: windows
binary: aw-nextblock.exe
- os: macos-latest
name: macos
binary: aw-nextblock
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: |
mkdir release
cp dist/${{ matrix.binary }} release/
cp -r visualization release/
cd release
zip -r ../aw-nextblock-${{ matrix.name }}.zip .
- name: Create ZIP (Windows)
if: matrix.name == 'windows'
shell: powershell
run: |
New-Item -ItemType Directory -Path release
Copy-Item -Path dist/${{ matrix.binary }} -Destination release/
Copy-Item -Path visualization -Destination release/visualization -Recurse
Compress-Archive -Path release/* -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