-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (32 loc) · 934 Bytes
/
pypi.yml
File metadata and controls
39 lines (32 loc) · 934 Bytes
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
name: PyPI
on:
push:
tags:
- 'v*'
workflow_dispatch:
permissions:
contents: read
jobs:
publish-to-pypi:
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
# Dedicated environments with protections for publishing are strongly recommended.
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
environment:
name: pypi
url: https://pypi.org/project/modelscope-mcp-server
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up uv
uses: astral-sh/setup-uv@v6
with:
version: "latest"
- name: Build
run: uv build
- name: Publish to PyPi
run: uv publish -v dist/*