32 lines
740 B
YAML
32 lines
740 B
YAML
name: Release
|
|
|
|
on: workflow_dispatch
|
|
# Uncomment and release to PyPI once caldav feature/httpx branch is merged
|
|
#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@v5
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v6
|
|
- name: Install Python 3.11
|
|
run: uv python install 3.11
|
|
- name: Build
|
|
run: uv build
|
|
- name: Publish
|
|
run: uv publish
|