Skip to content

Merge pull request #107 from washingtonpost/release/2.1.0 #28

Merge pull request #107 from washingtonpost/release/2.1.0

Merge pull request #107 from washingtonpost/release/2.1.0 #28

Workflow file for this run

name: Publish stable version
on:
push:
branches:
- main
jobs:
build-and-publish:
name: Build Python distribution and publish to TestPyPi and PyPi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python
uses: actions/setup-python@v2
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish package to TestPyPi
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}
repository_url: https://test.pypi.org/legacy/
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}