Skip to content

Fixed the issue where the printed data was cached and not displayed i… #29

Fixed the issue where the printed data was cached and not displayed i…

Fixed the issue where the printed data was cached and not displayed i… #29

Workflow file for this run

name: Publish PyPI Package
on:
push:
paths-ignore:
- 'README.md'
- '.github/*'
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install dependencies
run: |
# Upgrade pip
python3 -m pip install --upgrade pip
python3 -m pip install setuptools wheel twine
- name: Build a binary wheel and a source tarball
run: |
python3 setup.py sdist bdist_wheel
python3 -m twine check dist/*
- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}