34 lines
992 B
YAML
34 lines
992 B
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*
|
|
|
|
jobs:
|
|
pypi:
|
|
name: Publish to PyPI
|
|
runs-on: ubuntu-latest
|
|
# Environment and permissions trusted publishing.
|
|
environment:
|
|
# Create this environment in the GitHub repository under Settings -> Environments
|
|
name: pypi
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@5a7eac68fb9809dea845d802897dc5c723910fa3 # v7.1.3
|
|
- name: Install Python 3.11
|
|
run: uv python install 3.11
|
|
- name: Build
|
|
run: uv build
|
|
- name: Smoke test (wheel)
|
|
run: uv run --isolated --no-project --with dist/*.whl nextcloud-mcp-server --help
|
|
- name: Smoke test (source distribution)
|
|
run: uv run --isolated --no-project --with dist/*.tar.gz nextcloud-mcp-server --help
|
|
- name: Publish
|
|
run: uv publish
|