File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Publish to PyPI
2+
3+ on :
4+ release :
5+ types : [published]
6+ workflow_dispatch : # allows manual runs from the Actions tab
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+ - name : Install uv
14+ uses : astral-sh/setup-uv@v5
15+ - name : Build package
16+ run : uv build hackrfpy # project lives in the hackrfpy/ subdirectory
17+ - name : Store distributions
18+ uses : actions/upload-artifact@v4
19+ with :
20+ name : dist
21+ path : hackrfpy/dist/ # uv writes dist/ inside the project dir
22+
23+ publish :
24+ needs : build
25+ runs-on : ubuntu-latest
26+ environment : pypi # must match the environment in your PyPI publisher config
27+ permissions :
28+ id-token : write # REQUIRED for trusted publishing (OIDC)
29+ steps :
30+ - name : Download distributions
31+ uses : actions/download-artifact@v4
32+ with :
33+ name : dist
34+ path : dist/
35+ - name : Publish to PyPI
36+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments