Skip to content

Commit 39c46df

Browse files
committed
AEA-5986 Rely on dry-run rather than publish to test index.
1 parent 6678e2d commit 39c46df

2 files changed

Lines changed: 2 additions & 15 deletions

File tree

.github/workflows/tag-release.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@ on:
5151
required: false
5252
type: boolean
5353
default: false
54-
pypi_test_publish:
55-
description: "Whether to publish to Test PyPI"
56-
required: false
57-
type: boolean
58-
default: false
5954
outputs:
6055
version_tag:
6156
value: ${{ jobs.tag_release.outputs.version_tag }}
@@ -72,9 +67,6 @@ on:
7267
PYPI_TOKEN:
7368
required: false
7469
description: "PyPI token to publish packages"
75-
PYPI_TEST_TOKEN:
76-
required: false
77-
description: "Test PyPI token to publish packages to test index"
7870
jobs:
7971
install_semantic_release:
8072
# Install asdf
@@ -338,9 +330,7 @@ jobs:
338330
MAIN_BRANCH: ${{ inputs.main_branch }}
339331
EXTRA_ASSET: ${{ inputs.extra_artifact_name }}
340332
PYPI_PUBLISH: ${{ inputs.pypi_publish }}
341-
PYPI_TEST_PUBLISH: ${{ inputs.pypi_test_publish }}
342333
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
343-
PYPI_TEST_TOKEN: ${{ secrets.PYPI_TEST_TOKEN }}
344334

345335
- name: Create semantic release tag
346336
if: ${{ !inputs.dry_run }}

release.config.cjs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ const publish_packages = process.env.PUBLISH_PACKAGES?.split(",").map(s => s.tri
66
const mainBranch = process.env.MAIN_BRANCH || "main"
77

88
const pypiPublish = process.env.PYPI_PUBLISH?.toLowerCase() === 'true' || false
9-
const pypiTestPublish = process.env.PYPI_TEST_PUBLISH?.toLowerCase() === 'true' || false
10-
const pypiRepoUrl = pypiTestPublish ? "https://test.pypi.org/legacy/" : "https://upload.pypi.org/legacy/"
11-
const pypiToken = pypiTestPublish ? process.env.PYPI_TEST_TOKEN : process.env.PYPI_TOKEN
9+
const pypiToken = process.env.PYPI_TOKEN
1210

1311
module.exports = {
1412
branches: [
@@ -81,8 +79,7 @@ module.exports = {
8179
[
8280
"semantic-release-pypi",
8381
{
84-
pypiPublish, pypiPublish,
85-
repoUrl: pypiRepoUrl,
82+
pypiPublish: pypiPublish,
8683
repoToken: pypiToken
8784
}
8885
],

0 commit comments

Comments
 (0)