feat: add PyPI publishing workflow (#8)

This commit is contained in:
Haris
2025-04-04 01:10:08 -07:00
committed by GitHub
parent 279aa22bed
commit ebba932b73

34
.github/workflows/publish.yml vendored Normal file
View File

@ -0,0 +1,34 @@
name: Publish to PyPI
on:
release:
types: [published]
jobs:
build-n-publish:
name: Build and publish to PyPI
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/project/excel-mcp-server
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1