-
Notifications
You must be signed in to change notification settings - Fork 36
46 lines (38 loc) · 1.12 KB
/
release.yml
File metadata and controls
46 lines (38 loc) · 1.12 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
45
46
name: Create Release
on:
push:
tags:
- 'v*'
jobs:
create-release:
name: Create GitHub Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Extract version from tag
id: version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
- name: Create Release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create ${{ github.ref_name }} \
--title "Release ${{ github.ref_name }}" \
--generate-notes \
--notes-start-tag $(git describe --tags --abbrev=0 ${{ github.ref_name }}^ 2>/dev/null || echo "") \
--notes "## 📦 Installation
**PyPI Package:**
\`\`\`bash
pip install mcp-outline==${{ steps.version.outputs.VERSION }}
\`\`\`
**Docker Image:**
\`\`\`bash
docker pull ghcr.io/${{ github.repository }}:${{ steps.version.outputs.VERSION }}
\`\`\`
---
"