forked from IvanMurzak/Unity-MCP
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.79 KB
/
deploy_server_executables.yml
File metadata and controls
44 lines (36 loc) · 1.79 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
43
44
# ┌──────────────────────────────────────────────────────────────────┐
# │ Author: Ivan Murzak (https://github.com/IvanMurzak) │
# │ Repository: GitHub (https://github.com/IvanMurzak/Unity-MCP) │
# │ Copyright (c) 2025 Ivan Murzak │
# │ Licensed under the Apache License, Version 2.0. │
# │ See the LICENSE file in the project root for more information. │
# └──────────────────────────────────────────────────────────────────┘
# This workflow builds the MCP server executables for all platforms and uploads them as release assets.
# It is triggered when a new release is published manually.
# It is NOT triggered by CI/CD pipelines or other automated processes.
name: deploy-server-executables
on:
release:
types: [published]
jobs:
build-and-zip:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: "9.0.x"
- name: Make build script executable
run: chmod +x ./Unity-MCP-Server/build-all.sh
- name: Build executables for all platforms
shell: bash {0}
run: cd Unity-MCP-Server && ./build-all.sh Release
- name: Upload release assets
uses: softprops/action-gh-release@v2
with:
files: ./Unity-MCP-Server/publish/*.zip
tag_name: ${{ github.event.release.tag_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}