2
0
Files
mcp-server/.gitea/workflows/release.yml
Admin f0f724ec82
Some checks failed
Release / build (amd64, linux) (push) Successful in 5s
Release / build (arm64, darwin) (push) Successful in 7s
Release / build (amd64, windows) (push) Failing after 12s
Release / build (amd64, darwin) (push) Failing after 13s
Release / build (arm64, linux) (push) Successful in 18s
Release / release (push) Has been skipped
Initial commit: Gitea MCP Server
MCP (Model Context Protocol) server that enables AI assistants like
Claude to interact with Gitea Actions.

Features:
- Query runners with status and capabilities
- List and inspect workflow runs
- Get job logs
- List releases and assets

Copyright 2026 MarketAlly

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 21:03:33 +00:00

73 lines
1.8 KiB
YAML

name: Release
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: linux-latest
strategy:
matrix:
include:
- goos: linux
goarch: amd64
- goos: linux
goarch: arm64
- goos: darwin
goarch: amd64
- goos: darwin
goarch: arm64
- goos: windows
goarch: amd64
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
cache: false
- name: Build
run: |
VERSION=${GITHUB_REF_NAME#v}
EXT=""
if [ "${{ matrix.goos }}" = "windows" ]; then
EXT=".exe"
fi
CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} \
go build -ldflags "-s -w -X main.version=${VERSION}" \
-o gitea-mcp-server-${{ matrix.goos }}-${{ matrix.goarch }}${EXT}
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: gitea-mcp-server-${{ matrix.goos }}-${{ matrix.goarch }}
path: gitea-mcp-server-*
release:
needs: build
runs-on: linux-latest
steps:
- uses: actions/checkout@v4
- name: Download all artifacts
uses: actions/download-artifact@v3
with:
path: artifacts
- name: Prepare release files
run: |
mkdir -p release
find artifacts -type f -name 'gitea-mcp-server-*' -exec mv {} release/ \;
cd release && sha256sum * > checksums.txt
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: release/*
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}