Spaces:
Running
Running
Update PyPI deployment job
Browse files
.github/workflows/pypi_deploy.yml
CHANGED
|
@@ -8,6 +8,11 @@ on:
|
|
| 8 |
jobs:
|
| 9 |
pypi:
|
| 10 |
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
steps:
|
| 12 |
- name: "Checkout"
|
| 13 |
uses: actions/checkout@v3
|
|
@@ -23,9 +28,11 @@ jobs:
|
|
| 23 |
uses: pypa/gh-action-pypi-publish@release/v1
|
| 24 |
with:
|
| 25 |
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
|
| 26 |
-
|
| 27 |
-
|
|
|
|
| 28 |
- name: "Publish distribution 📦 to PyPI"
|
| 29 |
uses: pypa/gh-action-pypi-publish@release/v1
|
| 30 |
with:
|
| 31 |
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
|
|
|
|
| 8 |
jobs:
|
| 9 |
pypi:
|
| 10 |
runs-on: ubuntu-latest
|
| 11 |
+
environment:
|
| 12 |
+
name: pypi
|
| 13 |
+
url: https://pypi.org/p/pysr
|
| 14 |
+
permissions:
|
| 15 |
+
id-token: write
|
| 16 |
steps:
|
| 17 |
- name: "Checkout"
|
| 18 |
uses: actions/checkout@v3
|
|
|
|
| 28 |
uses: pypa/gh-action-pypi-publish@release/v1
|
| 29 |
with:
|
| 30 |
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
|
| 31 |
+
repository-url: https://test.pypi.org/legacy/
|
| 32 |
+
skip-existing: true
|
| 33 |
+
verbose: true
|
| 34 |
- name: "Publish distribution 📦 to PyPI"
|
| 35 |
uses: pypa/gh-action-pypi-publish@release/v1
|
| 36 |
with:
|
| 37 |
password: ${{ secrets.PYPI_API_TOKEN }}
|
| 38 |
+
verbose: true
|