Skip to content

v0.1.1

v0.1.1 #2

Workflow file for this run

name: Release MCPB Bundle
on:
release:
types: [published]
permissions:
contents: write
id-token: write
jobs:
build:
strategy:
matrix:
include:
- os: linux
arch: amd64
runner: ubuntu-latest
- os: linux
arch: arm64
runner: ubuntu-24.04-arm
- os: darwin
arch: arm64
runner: macos-latest
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
# Build the UI (React + Vite → single-file HTML)
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Build UI
run: cd ui && npm ci && npm run build
# Update manifest version from release tag
- name: Update version in manifests
run: |
VERSION="${{ github.event.release.tag_name }}"
VERSION="${VERSION#v}"
jq --arg v "$VERSION" '.version = $v' manifest.json > manifest.tmp.json && mv manifest.tmp.json manifest.json
# Pack the MCPB bundle (includes ui/dist/index.html)
- uses: NimbleBrainInc/mcpb-pack@v3
with:
output: "{name}-{version}-${{ matrix.os }}-${{ matrix.arch }}.mcpb"