Skip to content

Commit 1bbfe9b

Browse files
committed
Fix publish workflow
1 parent cedd98e commit 1bbfe9b

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

.github/workflows/publish.yaml

+21-21
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Publish
22
on:
3+
workflow_dispatch:
34
release:
45
types: [published]
56

@@ -21,24 +22,23 @@ jobs:
2122
with:
2223
name: python-package-distributions
2324
path: dist/
24-
25-
publish-to-pypi:
26-
name: Publish to PyPI
27-
needs:
28-
- build
29-
runs-on: ubuntu-latest
30-
environment:
31-
name: pypi
32-
url: https://pypi.org/p/dacite
33-
permissions:
34-
id-token: write # IMPORTANT: mandatory for trusted publishing
35-
steps:
36-
- name: Download dist
37-
uses: actions/download-artifact@v4
38-
with:
39-
name: python-package-distributions
40-
path: dist/
41-
- name: Publish package to PyPI
42-
uses: pypa/gh-action-pypi-publish@release/v1
43-
with:
44-
password: ${{ secrets.PYPI_API_TOKEN }}
25+
publish:
26+
name: Publish to PyPI
27+
needs:
28+
- build
29+
runs-on: ubuntu-latest
30+
environment:
31+
name: pypi
32+
url: https://pypi.org/p/dacite
33+
permissions:
34+
id-token: write # IMPORTANT: mandatory for trusted publishing
35+
steps:
36+
- name: Download dist
37+
uses: actions/download-artifact@v4
38+
with:
39+
name: python-package-distributions
40+
path: dist/
41+
- name: Publish package to PyPI
42+
uses: pypa/gh-action-pypi-publish@release/v1
43+
with:
44+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)