Publish to pypi #1
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
# This workflow will generate a distribution and upload it to PyPI | |
name: Publish to pypi | |
on: | |
workflow_dispatch: | |
jobs: | |
build_and_publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: dev | |
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. | |
- name: Setup Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Install Build Tools | |
run: | | |
python -m pip install build wheel | |
- name: Build Distribution Packages | |
run: | | |
python setup.py bdist_wheel | |
- name: Publish to Test PyPI | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
password: ${{secrets.PYPI_TOKEN}} |