-
Notifications
You must be signed in to change notification settings - Fork 11
34 lines (32 loc) · 922 Bytes
/
publish.yaml
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
29
30
31
32
33
34
name: publish
on: # yamllint disable-line rule:truthy
release:
types: [published]
workflow_dispatch:
jobs:
pypi:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install uv and package
run: |
python -m pip install --quiet uv
uv pip install --quiet --system -e .[build,stubs]
- name: Display system information
run: pycrostates-sys_info --developer
- name: Generate stub files
run: python tools/stubgen.py
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python -m build
twine check dist/*
twine upload dist/*