Skip to content

Merge pull request #37 from CiCiUi/new-feature-doc #19

Merge pull request #37 from CiCiUi/new-feature-doc

Merge pull request #37 from CiCiUi/new-feature-doc #19

name: Publish to TestPyPI
on:
push:
branches:
- master
- dev
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
environment: Pypi
env:
TestPypi: yes
steps:
- uses: actions/checkout@v2
with:
# fetch with tags https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches
fetch-depth: 0
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- 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 distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true