the actions versions were wrong #6
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: Publish new release on PyPI | |
# workflow is triggered when a new release is created or a new git tag is pushed to this repository | |
# and it can be manually triggered | |
on: | |
workflow_dispatch: | |
release: | |
types: [created] | |
push: | |
tags: | |
- '*' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
# downloads the repository code to the runner's file system for workflow access | |
- uses: actions/checkout@v4 | |
- name: Fetch all history for all tags and branches | |
run: git fetch --prune --unshallow | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
cache: 'poetry' | |
- name: Install poetry | |
uses: snok/install-poetry@v1 | |
- run: poetry config virtualenvs.prefer-active-python true | |
- name: Install poetry dynamic version plugin, extracts version number from git tag | |
run: | | |
pip install poetry-version-plugin | |
poetry self add poetry-version-plugin | |
- name: Install dependencies | |
run: poetry install | |
- name: Build package out of local poject | |
run: poetry build | |
- name: Publish | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} |