Skip to content

ci: publish: another try #7

ci: publish: another try

ci: publish: another try #7

Workflow file for this run

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 gettext
- name: Install build dependencies
run: pip install build wheel setuptools twine check-manifest
- name: Build source and wheel distributions
run: |
python -m venv /tmp/env
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 }}