Fixed the issue that when executing the put instruction when state is… #23
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 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 }} | |