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 01bfb5a commit 851f9ae
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/python-publish-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ jobs:
- name: Build pure python package
run: python -m build

- name: Build binary python package
run: |
cd py_ballisticcalc_exts
python -m build --outdir ../dist
cd ..
ls dist
# - name: Build binary python package
# run: |
# cd py_ballisticcalc_exts
# python -m build --outdir ../dist
# cd ..
# ls dist

- name: Publish package to Test PyPI
run: |
Expand All @@ -77,7 +77,7 @@ jobs:
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}

deploy-exts:
needs: build
needs: test-build-deploy
runs-on: ${{ matrix.os }}

strategy:
Expand All @@ -104,10 +104,11 @@ jobs:
cd py_ballisticcalc_exts
python -m build --outdir ../dist
cd ..
ls
- name: Publish package to PyPI
- name: Publish package to Test PyPI
run: |
python -m twine upload dist/* --skip-existing --verbose --non-interactive
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 851f9ae

Please sign in to comment.