downgrade ci/cd (#14) #15
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: Pypi publish | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-n-publish: | |
name: Build and publish Python distributions to PyPI | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Upgrade pip | |
run: python -m pip install --upgrade pip | |
- name: Install poetry | |
run: pip install poetry==1.7.1 | |
- name: Install dependencies | |
run: poetry install --no-root | |
- name: Build package | |
run: python3 -m build | |
- name: Publish distribution to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} |