publish yaylib 1.5.0 beta 1 (#70) #9
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: Publish yaylib to PyPI | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Poetry | |
run: pipx install poetry | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Check poetry | |
run: | | |
poetry --version | |
poetry config --list | |
- name: Install dependencies | |
run: | | |
poetry install | |
./poetry_plugins.sh | |
- name: Configure poetry | |
run: poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} | |
- name: Publish to PyPI | |
run: | | |
poetry build | |
poetry publish |