-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PayPal: skip logging in if already logged in (#104)
* Don't try to publish personal repo * * fix: [paypal] Check if logged in, otherwise crashes
- Loading branch information
1 parent
8df1560
commit 7fa5bc5
Showing
2 changed files
with
13 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,28 +39,3 @@ jobs: | |
path: | | ||
dist/*.whl | ||
dist/*.tar.gz | ||
python-publish-package: | ||
# Only publish package on push to tag or default branch. | ||
if: ${{ github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master') }} | ||
runs-on: ubuntu-latest | ||
needs: | ||
- tox | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
name: python-packages | ||
path: dist | ||
- name: Publish to PyPI (test server) | ||
uses: pypa/gh-action-pypi-publish@54b39fb9371c0b3a6f9f14bb8a67394defc7a806 # 2020-09-25 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.pypi_test_token }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
if: ${{ ! startsWith(github.ref, 'refs/tags/v') }} | ||
- name: Publish to PyPI (main server) | ||
uses: pypa/gh-action-pypi-publish@54b39fb9371c0b3a6f9f14bb8a67394defc7a806 # 2020-09-25 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.pypi_token }} | ||
if: ${{ startsWith(github.ref, 'refs/tags/v') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters