Bump versio to 2.2.1 #7
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
--- | |
# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/ | |
name: Publish 📦 to PyPI | |
on: | |
push: | |
tags: | |
- "v*" | |
workflow_dispatch: | |
jobs: | |
deploy-to-pypi: | |
if: github.repository_owner == 'Argmaster' | |
name: Deploy 📦 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Set up Python 3.8 | |
uses: actions/[email protected] | |
with: | |
python-version: "3.8" | |
architecture: "x64" | |
- name: Install Poetry 📜 | |
run: pip install poetry==1.6.1 | |
- name: Install dependencies 🗄️ | |
run: poetry install --no-cache --sync | |
- name: Build distribution 📦 | |
run: poetry run poetry build | |
- name: Detect Version of project | |
id: project-version | |
run: | | |
echo "version=$(poetry version | awk '{ print $2 }')" >> $GITHUB_OUTPUT | |
- name: Publish distribution 📦 to PyPI | |
# Executed only for version tag push event | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} |