Skip to content

Commit

Permalink
trying new deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
o-murphy committed Aug 15, 2024
1 parent 1642243 commit 038184b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
os: [ ubuntu-latest, windows-latest, macos-13, macos-14 ]

runs-on: ${{ matrix.os }}
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4

Expand All @@ -41,7 +44,7 @@ jobs:
- name: List ./dist
run: ls ./dist

- name: Publish package to PyPI
- name: Publish package distributions to PyPI
run: |
python -m twine upload dist/* --skip-existing --verbose --non-interactive
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,8 @@ jobs:
run: ls ./dist

- name: Publish package distributions to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true
repository-url: https://test.pypi.org/legacy/
# run: |
# python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/* --skip-existing --verbose --non-interactive
# env:
# TWINE_USERNAME: __token__
# TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
run: |
python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/* --skip-existing --verbose --non-interactive
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}

0 comments on commit 038184b

Please sign in to comment.