release v0.2.8 #22
Workflow file for this run
This file contains hidden or 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: pypi | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build-and-publish: | |
name: pypi | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: python -m pip install -r requirements.txt | |
- name: Prepare build directory | |
run: | | |
rm -rf dist build | |
- name: Install pypa/build and twine | |
run: | | |
python -m pip install --upgrade build twine | |
- name: Build a binary wheel and a source tarball | |
run: python -m build --sdist --wheel --outdir dist/ | |
- name: Publish distribution to PyPI | |
uses: pypa/gh-action-pypi-publish@v1.4.2 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} |