@@ -13,23 +13,25 @@ jobs:
1313 environment : pypi
1414 permissions :
1515 id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
16-
16+
1717 steps :
1818 - uses : actions/checkout@v4
19-
19+
2020 - name : Set up Python
2121 uses : actions/setup-python@v5
2222 with :
2323 python-version : ' 3.12'
24-
24+
2525 - name : Install build tools
2626 run : |
2727 python -m pip install --upgrade pip
2828 python -m pip install build
29-
29+ # Ensure git tags are available for versioning
30+ git fetch --prune --unshallow --tags || true
31+
3032 - name : Build package
3133 run : python -m build
32-
34+
3335 - name : Publish to PyPI
3436 uses : pypa/gh-action-pypi-publish@release/v1
3537 # Uses OIDC Trusted Publisher, no password needed!
4143 permissions :
4244 contents : read
4345 packages : write
44-
46+
4547 steps :
4648 - name : Checkout repository
4749 uses : actions/checkout@v4
@@ -94,29 +96,31 @@ jobs:
9496 build-packages :
9597 name : Build Release Packages
9698 runs-on : ubuntu-latest
97-
99+
98100 steps :
99101 - uses : actions/checkout@v4
100-
102+
101103 - name : Set up Python
102104 uses : actions/setup-python@v5
103105 with :
104106 python-version : ' 3.12'
105-
107+
106108 - name : Install build tools
107109 run : |
108110 python -m pip install --upgrade pip
109111 python -m pip install build
110-
112+ # Ensure git tags are available for versioning
113+ git fetch --prune --unshallow --tags || true
114+
111115 - name : Build packages
112116 run : python -m build
113-
117+
114118 - name : Upload wheel
115119 uses : actions/upload-artifact@v4
116120 with :
117121 name : wheel
118122 path : dist/*.whl
119-
123+
120124 - name : Upload sdist
121125 uses : actions/upload-artifact@v4
122126 with :
@@ -130,26 +134,26 @@ jobs:
130134 runs-on : ubuntu-latest
131135 permissions :
132136 contents : write
133-
137+
134138 steps :
135139 - uses : actions/checkout@v4
136-
140+
137141 - name : Download wheel artifact
138142 uses : actions/download-artifact@v4
139143 with :
140144 name : wheel
141145 path : dist/
142-
146+
143147 - name : Download sdist artifact
144148 uses : actions/download-artifact@v4
145149 with :
146150 name : sdist
147151 path : dist/
148-
152+
149153 - name : Extract version from tag
150154 id : version
151155 run : echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
152-
156+
153157 - name : Create Release
154158 uses : softprops/action-gh-release@v1
155159 with :
@@ -162,35 +166,35 @@ jobs:
162166 dist/*.tar.gz
163167 body : |
164168 ## 🚀 Release v${{ steps.version.outputs.VERSION }}
165-
169+
166170 ### Installation Options:
167-
171+
168172 #### Direct Download
169173 Download the packages attached to this release.
170-
174+
171175 #### PyPI
172176 ```bash
173177 # Using uvx (no installation required)
174178 uvx youtrack-rocket-mcp
175-
179+
176180 # Or install with uv tool
177181 uv tool install youtrack-rocket-mcp
178-
182+
179183 # Or with pip
180184 pip install youtrack-rocket-mcp
181185 ```
182-
186+
183187 #### Docker Hub
184188 ```bash
185189 docker pull ivolnistov/youtrack-rocket-mcp:${{ steps.version.outputs.VERSION }}
186190 docker pull ivolnistov/youtrack-rocket-mcp:latest
187191 ```
188-
192+
189193 #### GitHub Container Registry
190194 ```bash
191195 docker pull ghcr.io/i-volnistov/youtrack-rocket-mcp:${{ steps.version.outputs.VERSION }}
192196 docker pull ghcr.io/i-volnistov/youtrack-rocket-mcp:latest
193197 ```
194-
198+
195199 ### What's Changed
196- See the full changelog below.
200+ See the full changelog below.
0 commit comments