| Eric Ball | b2eb858 | 2026-06-11 13:41:54 -0700 | [diff] [blame^] | 1 | --- |
| 2 | name: PyPI release |
| 3 | |
| 4 | # yamllint disable-line rule:truthy |
| 5 | on: |
| 6 | push: |
| 7 | # Only invoked on release tag pushes |
| 8 | tags: |
| 9 | - v*.*.* |
| 10 | |
| 11 | env: |
| 12 | python-version: 3.10 |
| 13 | |
| 14 | jobs: |
| 15 | publish: |
| 16 | runs-on: ubuntu-latest |
| 17 | steps: |
| 18 | - name: Checkout repository |
| 19 | # yamllint disable-line rule:line-length |
| 20 | uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 |
| 21 | |
| 22 | - name: Configure Python |
| 23 | # yamllint disable-line rule:line-length |
| 24 | uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0 |
| 25 | with: |
| 26 | python-version: ${{ env.python-version }} |
| 27 | |
| 28 | - name: Build package distribution files |
| 29 | uses: opencord/shared-workflows/.github/workflows/verify-unit-tests.yaml@main |
| 30 | with: |
| 31 | pypi-username: ${{ secrets.PYPI_USERNAME }} |
| 32 | pypi-password: ${{ secrets.PYPI_PASSWORD }} |
| 33 | prep-commands: "make python-protos" |