Skip to content

Commit

Permalink
added skip existing to all twine uploads, also added artifact uploads to
Browse files Browse the repository at this point in the history
github in case I build things okay but run into an upload issue
  • Loading branch information
AndrewAnnex committed Dec 2, 2020
1 parent 4dda84f commit d3c9480
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,23 @@ jobs:
- name: Build 🛠️ sdist source
run: |
python setup.py sdist
- uses: actions/upload-artifact@v2
with:
name: spiceypy_linux_dist
path: dist/
- name: Publish distribution 📦 to Test PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }}
run: |
twine upload --non-interactive --repository testpypi dist/*
twine upload --non-interactive --skip-existing --repository testpypi dist/*
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags') && (github.event_name == 'push' || github.event_name == 'release')
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload --non-interactive --skip-existing dist/*
twine upload --non-interactive --skip-existing dist/*
build-n-publish-windows:
name: Build and publish SpiceyPy 🌶️ 🥧 Python 🐍 distributions 📦 to PyPI and TestPyPI on Windows
strategy:
Expand Down Expand Up @@ -95,16 +99,20 @@ jobs:
- name: Build 🛠️ bdist_wheel
run: |
python setup.py bdist_wheel --plat-name="win-amd64" --python-tag=${{ matrix.python-tag }}
- uses: actions/upload-artifact@v2
with:
name: spiceypy_windows_dist
path: dist/
- name: Publish distribution 📦 to Test PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }}
run: |
twine upload --non-interactive --repository testpypi dist/*
twine upload --non-interactive --skip-existing --repository testpypi dist/*
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags') && (github.event_name == 'push' || github.event_name == 'release')
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload --non-interactive --skip-existing dist/*
twine upload --non-interactive --skip-existing dist/*

0 comments on commit d3c9480

Please sign in to comment.