feat: add publish workflow

This commit is contained in:
Gergő Jedlicska
2025-01-19 20:58:26 +01:00
parent fe0a8eb9f5
commit ce104adb50
2 changed files with 28 additions and 1 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ on:
branches:
- 'gergo/uvSetup'
jobs:
build:
ci:
name: continuous-integration
runs-on: ubuntu-latest
strategy:
+27
View File
@@ -0,0 +1,27 @@
# Publish a release to PyPI.
name: 'Publish to PyPI'
on:
push:
branches:
- 'gergo/uvSetup'
jobs:
pypi-publish:
name: Upload to PyPI
runs-on: ubuntu-latest
environment:
name: release
permissions:
# For PyPI's trusted publishing.
id-token: write
steps:
- name: 'Install uv'
uses: astral-sh/setup-uv@v5
- name: 'Build artifacts'
run: uv build
- name: Publish to PyPi
run: uv publish --publish-url https://test.pypi.org/simple/
- name: Test package install
run: uv run --with specklepy --no-project -- python -c "import specklepy"