Skip to content

Commit 65df076

Browse files
parameterize pypi repository from vars context
1 parent d7dd886 commit 65df076

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/create-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
uses: ./.github/workflows/publish.yml
5151
with:
5252
icloudpd_version: ${{needs.get_version.outputs.icloudpd_version}}
53+
PYPI_REPOSITORY: ${{ vars.PYPI_REPOSITORY }}
5354
secrets:
5455
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
5556
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}

.github/workflows/publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
icloudpd_version:
55
required: true
66
type: string
7+
PYPI_REPOSITORY:
8+
required: false
9+
type: string
710
secrets:
811
DOCKERHUB_USERNAME:
912
required: false
@@ -113,6 +116,7 @@ jobs:
113116
114117
- name: Publish PyPI
115118
env:
119+
TWINE_REPOSITORY: ${{ inputs.PYPI_REPOSITORY }}
116120
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
117121
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
118122
run: |

0 commit comments

Comments
 (0)