Skip to content

v1.7.6: add a load_content option for some workflows where being able… #79

v1.7.6: add a load_content option for some workflows where being able…

v1.7.6: add a load_content option for some workflows where being able… #79

name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI and create Github Release
on:
push:
# remove branchname otherwise github actions will trigger event regardless of tag.
tags: v[0-9]+.[0-9]+*
jobs:
builds-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI + github release
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 setuptools
run: >-
python -m pip install --user --upgrade setuptools wheel
- name: Build a binary wheel and source tarball
run: >-
python setup.py sdist bdist_wheel
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
- name: Upload to release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.RELEASE_TOKEN }}
prerelease: false
draft: true
files: dist/*