Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

Commit

Permalink
Change deploy to test PyPi only on release creation
Browse files Browse the repository at this point in the history
  • Loading branch information
cvauclair committed Apr 19, 2022
1 parent 70cafe4 commit 926955d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ jobs:
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
7 changes: 4 additions & 3 deletions .github/workflows/publish_pypi_test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Publish main branch to PyPi test

on:
push:
branches: [ main ]
release:
types: [ created ]

jobs:
test:
Expand Down Expand Up @@ -76,5 +76,6 @@ jobs:
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
user: __token__
password: ${{ secrets.PYPI_API_TOKEN_TEST }}
repository_url: https://test.pypi.org/legacy/
4 changes: 2 additions & 2 deletions .github/workflows/test_and_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Test and lint
on:
pull_request:
branches: [ main ]
release:
types: [ created ]
push:
branches: [ main ]

jobs:
test:
Expand Down

0 comments on commit 926955d

Please sign in to comment.