Skip to content

Commit

Permalink
Merge branch 'cicd2' of https://github.com/joamatab/klayout into joam…
Browse files Browse the repository at this point in the history
…atab-cicd2
  • Loading branch information
klayoutmatthias committed May 16, 2022
2 parents f61bf53 + ea32c61 commit be98a0a
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,25 @@ jobs:
- uses: actions/upload-artifact@v2
with:
path: dist/*.tar.gz

upload_to_test_pypy:
needs: [build, make_sdist]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with:
name: artifact
path: dist

- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.test_pypi_password }}
repository_url: https://test.pypi.org/legacy/

upload_all:
upload_to_pypi:
needs: [build, make_sdist]
runs-on: ubuntu-latest
# Uncomment for real PyPi
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v2
Expand All @@ -92,8 +106,4 @@ jobs:
- uses: pypa/[email protected]
with:
user: __token__
# Test PyPI
# password: ${{ secrets.test_pypi_password }}
# repository_url: https://test.pypi.org/legacy/
# Uncomment for Real Pypi
password: ${{ secrets.pypi_password }}

0 comments on commit be98a0a

Please sign in to comment.