Skip to content

Commit 287b548

Browse files
committed
[dist] Update environment names for publish workflow
1 parent 320ceae commit 287b548

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ on:
44
workflow_dispatch:
55
inputs:
66
tag:
7-
description: 'Tag to publish'
7+
description: 'Tag To Publish'
88
required: true
99
environment:
10-
description: 'PyPI environment'
10+
description: 'PyPI Environment'
1111
required: true
1212
type: choice
1313
options:
1414
- test
15-
- prod
15+
- release
1616
default: 'test'
1717

1818
jobs:
19-
verify-builds:
20-
name: Verify build workflows passed
19+
verify:
20+
name: Verify Build
2121
runs-on: ubuntu-latest
2222
steps:
23-
- name: Verify build workflows
23+
- name: Check workflows
2424
uses: actions/github-script@v6
2525
with:
2626
script: |
@@ -68,21 +68,20 @@ jobs:
6868
throw new Error("One or more required build workflows did not succeed.");
6969
}
7070
71-
build-and-publish:
72-
name: Build and publish Python distributions to ${{ github.event.inputs.environment }} PyPI
71+
publish:
72+
name: Building and Publishing to ${{ github.event.inputs.environment }} PyPI
7373
runs-on: ubuntu-latest
74-
needs: verify-builds
75-
74+
needs: verify
7675

7776
environment:
78-
name: ${{ github.event.inputs.environment == 'test' && 'testpypi' || 'pypi' }}
77+
name: ${{ github.event.inputs.environment == 'test' && 'test' || 'release' }}
7978
url: ${{ github.event.inputs.environment == 'test' && 'https://test.pypi.org/p/scenedetect' || 'https://pypi.org/p/scenedetect' }}
8079

8180
permissions:
8281
id-token: write # IMPORTANT: mandatory for trusted publishing
8382

8483
steps:
85-
- name: Checkout code
84+
- name: Checkout ${{ github.event.inputs.tag }}
8685
uses: actions/checkout@v3
8786
with:
8887
ref: ${{ github.event.inputs.tag }}

0 commit comments

Comments
 (0)