Skip to content

dbression 0.1.1 — Oracle fixes #2

dbression 0.1.1 — Oracle fixes

dbression 0.1.1 — Oracle fixes #2

Workflow file for this run

name: Publish to PyPI
# Triggered when a GitHub Release is published. Tag the release with
# the version (e.g. `v0.2.0`) — the workflow builds wheel + sdist and
# publishes via PyPI Trusted Publishing (OIDC, no API token).
#
# One-time setup on PyPI: create a Trusted Publisher entry under
# https://pypi.org/manage/project/dbression/settings/publishing/
# with:
# * Owner: angrydat
# * Repository name: dbression
# * Workflow name: publish.yml
# * Environment: pypi
on:
release:
types: [published]
# Allow manual runs for emergencies / re-publishes from a tag.
workflow_dispatch:
jobs:
build:
name: Build distributions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
- run: uv build
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
publish:
name: Publish to PyPI
needs: build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/dbression
permissions:
id-token: write # required for Trusted Publishing (OIDC)
steps:
- uses: actions/download-artifact@v4
with:
name: dist
path: dist/
- uses: pypa/gh-action-pypi-publish@release/v1
with:
# Optional belt-and-braces: verify package metadata before upload.
verify-metadata: true