Skip to content

Commit

Permalink
Release test packages from master, production packages from release.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed May 21, 2020
1 parent 23f98d5 commit 9710044
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Expand Up @@ -40,14 +40,14 @@ jobs:
name: wheel
path: dist/
- name: Publish packages to Test PyPI
if: github.event_name == 'push'
if: github.event_name == 'push' && github.event.ref == 'refs/heads/master'
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.test_pypi_token }}
repository_url: https://test.pypi.org/legacy/
- name: Publish packages to PyPI
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
if: github.event_name == 'push' && github.event.ref == 'refs/heads/release'
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
Expand Down

0 comments on commit 9710044

Please sign in to comment.