Skip to content

Commit 0c047ae

Browse files
authored
build: ensure package upload is performed exactly once (#16)
When creating a release the following 3 event types are triggered: - 'create' - 'released' or 'prereleased' - 'publish' Trying to upload multiple packages with the same version will lead to an error. To ensure the package is uploaded exactly once we will trigger on 'publish'. See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release for details.
1 parent 13f7bf5 commit 0c047ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/build-and-upload.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: publish on TestPyPI
33

44
on:
55
release:
6+
types: [published]
67
workflow_dispatch:
78

89
jobs:

0 commit comments

Comments
 (0)