Forge
yamlc0b81713
1# ВНИМАНИЕ: текущий процесс релизов — PowerShell (`publish-and-deploy.ps1`, `scripts/publish-release-win.ps1`).
2# Этот файл не используется как рабочий CI; оставлен как пример/история. См. docs/publishing-and-ci.md.
3#
4# Релиз linux-x64 на образе Ubuntu 25.10 (Questing). Запуск: push тега v* (например v2026.03.22-ubuntu2510).
5# Windows/macOS по-прежнему: scripts/publish-release-win.ps1
6
7stages
8 - build
9 - release
10
11variables
12 ZIP_NAME: agent-notes-mcp-linux-x64.zip
13
14build-linux-ubuntu2510
15 stage: build
16 image: ubuntu:25.10
17 rules:
18 - if: $CI_COMMIT_TAG =~ /^v[0-9]/
19 before_script:
20 - apt-get update -qq
21 - DEBIAN_FRONTEND=noninteractive apt-get install -y -qq wget ca-certificates zip zlib1g libicu-dev
22 - wget -qO /tmp/dotnet-install.sh https://dot.net/v1/dotnet-install.sh
23 - bash /tmp/dotnet-install.sh --channel 10.0 --install /usr/share/dotnet
24 - export PATH="/usr/share/dotnet:$PATH"
25 - dotnet --version
26 script:
27 - export PATH="/usr/share/dotnet:$PATH"
28 - dotnet publish AgentNotesMcp.csproj -c Release -r linux-x64 --self-contained true -o publish-out
29 - cd publish-out && zip -r "../$ZIP_NAME" . && cd ..
30 - ls -la "$ZIP_NAME"
31 artifacts:
32 name: "$ZIP_NAME"
33 paths:
34 - $ZIP_NAME
35 expire_in: never
36
37create-release
38 stage: release
39 image: registry.gitlab.com/gitlab-org/release-cli:latest
40 needs:
41 - job: build-linux-ubuntu2510
42 artifacts: true
43 rules:
44 - if: $CI_COMMIT_TAG =~ /^v[0-9]/
45 script:
46 - echo "Creating GitLab Release for $CI_COMMIT_TAG"
47 release:
48 tag_name: "$CI_COMMIT_TAG"
49 name: "agent-notes-mcp $CI_COMMIT_TAG — Ubuntu 25.10 / linux-x64"
50 description: |
51 Self-contained **linux-x64**, .NET 10. Сборка в CI на образе **ubuntu:25.10** (целевая среда: Ubuntu 25.10 amd64).
52
53 **Cursor / MCP:** распакуй архив и укажи абсолютный путь к бинарнику `AgentNotesMcp` в `mcp.json` (`command`, `args`: `[]`).
54
55 Сборки **win-x64** / **osx-x64** — скрипт `scripts/publish-release-win.ps1` (Generic Package + опционально Release).
56 assets:
57 links:
58 - name: agent-notes-mcp-linux-x64.zip
59 filepath: agent-notes-mcp-linux-x64.zip
60
View only · write via MCP/CIDE