update types and API interface to foxops version 2.2 (#34) #9
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
name: CD | |
on: | |
push: | |
tags: | |
- v* | |
workflow_dispatch: | |
env: | |
FORCE_COLOR: "1" # Make tools pretty. | |
PYTHON_LATEST: "3.11" | |
jobs: | |
deploy-pypi: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.PYTHON_LATEST }} | |
- uses: snok/install-poetry@v1 | |
with: | |
version: 1.3.0 | |
- name: Install dependencies | |
run: | | |
poetry self add "poetry-dynamic-versioning[plugin]" | |
- run: poetry build | |
- name: Publish package | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
run: | | |
poetry publish -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} |