Skip to content

Commit 883e39f

Browse files
feat: update release workflow
1 parent 49991c7 commit 883e39f

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,25 @@ name: Release
88
jobs:
99
pypi-publish:
1010
runs-on: ubuntu-latest
11-
environment: pypi
11+
environment:
12+
name: pypi
13+
urls: https://pypi.org/p/mcpm
1214
permissions:
1315
# IMPORTANT: this permission is mandatory for Trusted Publishing
1416
id-token: write
1517
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Install uv with caching
22+
uses: astral-sh/setup-uv@v5
23+
with:
24+
enable-cache: true
25+
cache-dependency-glob: "pyproject.toml"
26+
27+
- name: Build
28+
run: uv build
29+
1630
- name: Publish distribution to PyPI
1731
uses: pypa/gh-action-pypi-publish@release/v1
1832

0 commit comments

Comments
 (0)