ci: publish: another try no.3 #8
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 to PyPI 📦 | |
on: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
publish-pypi: | |
name: Build and publish to PyPI | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.x" | |
- name: Install system dependencies | |
run: sudo apt update && sudo apt install -y gettext | |
- name: Install build dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install build wheel setuptools twine check-manifest | |
- name: Build source and wheel distributions | |
run: | | |
python -m build | |
check-manifest . | |
twine check --strict dist/* | |
- name: Publish distribution to PyPI | |
uses: pypa/gh-action-pypi-publish@ae63f3323ae7b31c08f2805b18056cbf132ce478 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} |