Skip to content

Commit 4825ca1

Browse files
committed
Remove ability to publish to test PyPI
1 parent 4a270d5 commit 4825ca1

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

.github/workflows/release.yaml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
name: Release
22
on:
3-
workflow_dispatch:
4-
inputs:
5-
pypi:
6-
description: 'PyPI instance'
7-
required: true
8-
type: choice
9-
default: 'production'
10-
options:
11-
- production
12-
- testing
133
push:
144
branches: [ release ]
155

@@ -20,8 +10,6 @@ concurrency:
2010
env:
2111
PYTHON_RUNTIME_VERSION: "3.11"
2212
PYTHON_PACKAGE_NAME: netboxlabs-netbox-branching
23-
PYPI_URL_PRODUCTION: "https://upload.pypi.org/legacy/"
24-
PYPI_URL_TESTING: "https://test.pypi.org/legacy/"
2513

2614
jobs:
2715
get-package-name:
@@ -106,12 +94,10 @@ jobs:
10694
- name: Publish release distributions to PyPI
10795
uses: pypa/gh-action-pypi-publish@release/v1
10896
with:
109-
repository-url: ${{ github.event.inputs.pypi == 'production' && env.PYPI_URL_PRODUCTION || env.PYPI_URL_TESTING }}
11097
packages-dir: dist
11198
release:
11299
name: Release
113100
needs: [ get-next-version, get-release-notes, build ]
114-
if: github.event.inputs.pypi == 'production'
115101
runs-on: ubuntu-latest
116102
timeout-minutes: 5
117103
steps:

0 commit comments

Comments
 (0)