mirror of https://github.com/KLayout/klayout.git
Merge branch 'cicd2' of https://github.com/joamatab/klayout into joamatab-cicd2
This commit is contained in:
commit
be98a0aef6
|
|
@ -78,10 +78,24 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: dist/*.tar.gz
|
path: dist/*.tar.gz
|
||||||
|
|
||||||
upload_all:
|
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/gh-action-pypi-publish@v1.4.2
|
||||||
|
with:
|
||||||
|
user: __token__
|
||||||
|
password: ${{ secrets.test_pypi_password }}
|
||||||
|
repository_url: https://test.pypi.org/legacy/
|
||||||
|
|
||||||
|
upload_to_pypi:
|
||||||
needs: [build, make_sdist]
|
needs: [build, make_sdist]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Uncomment for real PyPi
|
|
||||||
if: github.event_name == 'release' && github.event.action == 'published'
|
if: github.event_name == 'release' && github.event.action == 'published'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v2
|
||||||
|
|
@ -92,8 +106,4 @@ jobs:
|
||||||
- uses: pypa/gh-action-pypi-publish@v1.4.2
|
- uses: pypa/gh-action-pypi-publish@v1.4.2
|
||||||
with:
|
with:
|
||||||
user: __token__
|
user: __token__
|
||||||
# Test PyPI
|
|
||||||
# password: ${{ secrets.test_pypi_password }}
|
|
||||||
# repository_url: https://test.pypi.org/legacy/
|
|
||||||
# Uncomment for Real Pypi
|
|
||||||
password: ${{ secrets.pypi_password }}
|
password: ${{ secrets.pypi_password }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue