hackrfpy V1.0.0 #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish to PyPI | |
| on: | |
| release: | |
| types: [published] | |
| workflow_dispatch: # allows manual runs from the Actions tab | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Build package | |
| run: uv build hackrfpy # project lives in the hackrfpy/ subdirectory | |
| - name: Store distributions | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: dist | |
| path: hackrfpy/dist/ # uv writes dist/ inside the project dir | |
| publish: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: pypi # must match the environment in your PyPI publisher config | |
| permissions: | |
| id-token: write # REQUIRED for trusted publishing (OIDC) | |
| steps: | |
| - name: Download distributions | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: dist | |
| path: dist/ | |
| - name: Publish to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 |