Skip to content

Commit 2674585

Browse files
Copilotmichaelchu
andauthored
Fix PyPI trusted publisher auth and add manual workflow trigger (#69)
* Initial plan * Fix PyPI trusted publisher configuration by removing environment Co-authored-by: michaelchu <540510+michaelchu@users.noreply.github.com> * Add workflow_dispatch trigger to enable manual workflow execution Co-authored-by: michaelchu <540510+michaelchu@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: michaelchu <540510+michaelchu@users.noreply.github.com>
1 parent bb73524 commit 2674585

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

.github/workflows/python-publish.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ name: Upload Python Package
1111
on:
1212
release:
1313
types: [published]
14+
workflow_dispatch:
1415

1516
permissions:
1617
contents: read
@@ -46,17 +47,6 @@ jobs:
4647
# IMPORTANT: this permission is mandatory for trusted publishing
4748
id-token: write
4849

49-
# Dedicated environments with protections for publishing are strongly recommended.
50-
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
51-
environment:
52-
name: pypi
53-
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
54-
# url: https://pypi.org/p/optopsy
55-
#
56-
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
57-
# ALTERNATIVE: exactly, uncomment the following line instead:
58-
url: https://pypi.org/project/optopsy/${{ github.event.release.name }}
59-
6050
steps:
6151
- name: Retrieve release distributions
6252
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)