-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.06 KB
/
build-bundle.yml
File metadata and controls
42 lines (37 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Build 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
- name: Update manifest version from tag
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
if [ -f server.json ]; then
jq --arg v "$VERSION" '.version = $v' server.json > server.tmp.json
mv server.tmp.json server.json
fi
- uses: NimbleBrainInc/mcpb-pack@v2
with:
output: "{name}-{version}-${{ matrix.os }}-${{ matrix.arch }}.mcpb"