-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (25 loc) · 925 Bytes
/
Copy pathrelease.yml
File metadata and controls
28 lines (25 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Release
# PyPI trusted publishing: no API token lives in CI, ever. Configure the trusted publisher on
# PyPI's project settings page with: owner foretop-dev, repository ebb, workflow release.yml,
# environment pypi. Triggered by publishing a GitHub Release (a deliberate human action), not
# by every tag push.
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
environment: pypi
permissions:
contents: read
id-token: write # mandatory for PyPI trusted publishing
steps:
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@v9.0.0
- run: uv build -o dist
- run: uv venv .wheel-test
- run: uv pip install --python .wheel-test/bin/python dist/*.whl
- run: python scripts/check_ebb_distribution.py --python .wheel-test/bin/python
- uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist