chore: bump version to 0.17.6 #22
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*' # Trigger on version tags like v1.0.0, v0.0.1 | |
| permissions: | |
| contents: write | |
| jobs: | |
| publish-crates: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust | |
| run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
| - name: Publish to crates.io | |
| run: cargo publish --allow-dirty | |
| env: | |
| CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
| build: | |
| strategy: | |
| matrix: | |
| include: | |
| - runs-on: ubuntu-latest | |
| target: x86_64-unknown-linux-gnu | |
| artifact: leankg-linux-x64.tar.gz | |
| - runs-on: macos-latest | |
| target: aarch64-apple-darwin | |
| artifact: leankg-macos-arm64.tar.gz | |
| - runs-on: macos-latest | |
| target: x86_64-apple-darwin | |
| artifact: leankg-macos-x64.tar.gz | |
| - runs-on: windows-latest | |
| target: x86_64-pc-windows-msvc | |
| artifact: leankg-windows-x64.tar.gz | |
| runs-on: ${{ matrix.runs-on }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install Rust | |
| run: | | |
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable | |
| rustup target add ${{ matrix.target }} | |
| - name: Build Vite UI | |
| shell: bash | |
| run: | | |
| cd ui | |
| bun install | |
| bun run build | |
| rm -rf ../src/embed/* | |
| cp -r dist/* ../src/embed/ | |
| - name: Build | |
| run: cargo build --release --target ${{ matrix.target }} | |
| - name: Package | |
| run: | | |
| mkdir -p release | |
| EXT="" | |
| if [ "${{ matrix.runs-on }}" = "windows-latest" ]; then | |
| EXT=".exe" | |
| fi | |
| cp target/${{ matrix.target }}/release/leankg$EXT release/leankg | |
| tar -czf release/${{ matrix.artifact }} -C release leankg | |
| shell: bash | |
| - uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ github.ref_name }} | |
| generate_release_notes: true | |
| files: release/${{ matrix.artifact }} |