Skip to content

Commit

Permalink
Configuring GitHub Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
theriverman committed Dec 12, 2020
1 parent f39f5eb commit 6ee9c73
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,31 @@ on:
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
# Setup Python
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
# Install Dependencies
- name: Install pypa/build
run: >-
python -m
pip install
build wheel
--user
# Build Package
- name: Build a binary wheel and a source tarball
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
run: >-
python
setup.py
bdist_wheel
sdist
# Publish
- name: Publish distribution 📦 to Test PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
Expand Down

0 comments on commit 6ee9c73

Please sign in to comment.