feat: update USSD module for API v1 test/live app modes #3
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 | |
| # Publishes the package to PyPI when a version tag (e.g. v0.1.0) is pushed. | |
| # | |
| # Setup: add your PyPI API token as a repository secret named PYPI_API_TOKEN | |
| # (Settings -> Secrets and variables -> Actions -> New repository secret). | |
| # Create the token at https://pypi.org/manage/account/token/ and scope it to | |
| # the "helliomessaging" project once the project exists. | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| jobs: | |
| build-and-publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Build distributions | |
| run: | | |
| python -m pip install --upgrade pip build | |
| python -m build | |
| - name: Publish to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| password: ${{ secrets.PYPI_API_TOKEN }} |