generated from aaronsteers/awesome-python-template
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 985 Bytes
/
publish.yml
File metadata and controls
35 lines (31 loc) · 985 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
# This workflow publishes the python package to PyPI.
#
# Triggers:
# - release: published - When user clicks "Publish" on a draft release (downloads pre-built assets)
#
# Authentication: This workflow expects GitHub OIDC for passwordless PyPI publishing.
# For more info: https://docs.pypi.org/trusted-publishers/
name: Publish Package
on:
release:
types: [published]
jobs:
publish_to_pypi:
name: Publish Package to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
environment:
name: PyPI
url: https://pypi.org/p/fastmcp-extensions/
steps:
- name: Download release assets
uses: robinraju/release-downloader@v1.12
with:
tag: ${{ github.event.release.tag_name }}
fileName: "*"
out-file-path: dist
# Uses GitHub OIDC for passwordless authentication (see header comment)
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1.13.0