diff --git a/.github/workflows/pypy-publish.yml b/.github/workflows/pypy-publish.yml new file mode 100644 index 0000000..204444a --- /dev/null +++ b/.github/workflows/pypy-publish.yml @@ -0,0 +1,33 @@ +name: Publish Package to PyPI + +on: + release: + types: [published] + +permissions: + contents: read + +jobs: + release-build: + runs-on: ubuntu-latest + steps: + - name: Check out + uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v4 + + - name: Check lock file consistency + run: uv sync --locked + + - name: Build package + run: uv build + + - name: Publish package + run: uv publish + + - name: Update build artifacts + uses: actions/upload-artifact@v4 + with: + name: release-dists + path: dist/