Skip to content

Commit

Permalink
Merge pull request #70 from LedgerHQ/ci/releases
Browse files Browse the repository at this point in the history
Always deploy on test.pypi.org, weither from a merge or a tag
  • Loading branch information
lpascal-ledger authored May 30, 2023
2 parents 56ca7b5 + 201db60 commit ca3debd
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ on:
- '*'
branches:
- master
- develop
pull_request:
branches:
- master
- develop

jobs:
build_install_test:
Expand Down Expand Up @@ -86,21 +84,15 @@ jobs:
fi
- name: Publish Python package on test.pypi.org
if: |
success() &&
github.event_name == 'push' &&
!startsWith(github.ref, 'refs/tags/')
if: success() && github.event_name == 'push'
run: python -m twine upload --repository testpypi dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PUBLIC_API_TOKEN }}
TWINE_NON_INTERACTIVE: 1

- name: Publish Python package on pypi.org
if: |
success() &&
github.event_name == 'push' &&
startsWith(github.ref, 'refs/tags/')
if: success() && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
run: python -m twine upload dist/*
env:
TWINE_USERNAME: __token__
Expand Down

0 comments on commit ca3debd

Please sign in to comment.