Skip to content

Commit adafa1d

Browse files
committed
Cleanup pypi_registry
1 parent 76bf102 commit adafa1d

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.github/actions/publish-python/action.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,12 @@ author: datavisyn
55
inputs:
66
pypi_registry:
77
description: "registry where to publish python package"
8-
default: "https://upload.pypi.org/legacy/"
98
required: false
109
pypi_username:
1110
description: "username for python registry"
12-
default: "admin"
1311
required: true
1412
pypi_password:
1513
description: "passwort for python registry"
16-
default: "admin"
1714
required: true
1815

1916
runs:
@@ -30,6 +27,6 @@ runs:
3027
twine upload dist_python/*
3128
shell: bash
3229
env:
33-
PYPI_REPOSITORY: ${{ inputs.pypi_registry }}
30+
PYPI_REPOSITORY: ${{ inputs.pypi_registry || 'https://upload.pypi.org/legacy/' }}
3431
TWINE_USERNAME: ${{ inputs.pypi_username }}
3532
TWINE_PASSWORD: ${{ inputs.pypi_password }}

.github/workflows/publish-node-python.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,6 @@ jobs:
9999
github_ro_token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
100100
- uses: ./tmp/github-workflows/.github/actions/publish-python
101101
with:
102+
pypi_registry: ${{ vars.PYPI_REGISTRY }}
102103
pypi_username: ${{ secrets.PYPI_USERNAME }}
103104
pypi_password: ${{ secrets.PYPI_PASSWORD }}

.github/workflows/publish-python.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,6 @@ jobs:
5656
github_ro_token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
5757
- uses: ./tmp/github-workflows/.github/actions/publish-python
5858
with:
59+
pypi_registry: ${{ vars.PYPI_REGISTRY }}
5960
pypi_username: ${{ secrets.PYPI_USERNAME }}
6061
pypi_password: ${{ secrets.PYPI_PASSWORD }}

0 commit comments

Comments
 (0)