Skip to content

Fixed the issue that when executing the put instruction when state is… #23

Fixed the issue that when executing the put instruction when state is…

Fixed the issue that when executing the put instruction when state is… #23

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 }}