Add num2words module to package #12
Workflow file for this run
This file contains 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
# Build the package and publish it to PyPI after tests pass. | |
name: Publish to PyPI | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
tests: | |
uses: ./.github/workflows/python-package.yml | |
publish: | |
name: publish | |
needs: [tests] # require tests to pass before deploy runs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Build package | |
run: | | |
python -m pip install -U pip build | |
python -m build | |
- name: Publish | |
uses: pypa/[email protected] | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_KEY }} |