Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hennlo committed Jan 24, 2022
2 parents 7b6ad33 + 50f4a7d commit 80ecf43
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI

on: push

on:
# Trigger the workflow on push , PR or release publish,
# but only for the main branch
push:
branches:
- master
pull_request:
branches:
- master
release:
types:
- published
- released

jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
Expand All @@ -15,13 +27,13 @@ jobs:
- name: Build package
run: python setup.py sdist
- name: Publish distribution 📦 to Test PyPI
if: github.event_name == 'push'
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
if: github.event_name == 'release'
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}

2 changes: 1 addition & 1 deletion polypheny/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Update this for the versions
# Don't change the forth version number from None
VERSION = (0, 2, 0, None)
VERSION = (0, 2, 0, None)

0 comments on commit 80ecf43

Please sign in to comment.