Skip to content

Commit

Permalink
Allow manually test server usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Garulf committed Nov 23, 2023
1 parent 5ed3baa commit 9dde95a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Create Release

on:
workflow_dispatch:
inputs:
test:
description: 'Use PYPI test server'
required: false
default: 'false'
push:
branches:
- master
Expand Down Expand Up @@ -57,4 +62,4 @@ jobs:
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
repository-url: "${{ inputs.test == 'true' && 'https://test.pypi.org/legacy/' || 'https://upload.pypi.org/legacy/' }}"

0 comments on commit 9dde95a

Please sign in to comment.