Skip to content

Commit dfcbd6b

Browse files
committed
added the yml
1 parent e0401e5 commit dfcbd6b

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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

0 commit comments

Comments
 (0)