Skip to content

Commit 0e05284

Browse files
committed
add pypi token and dispatch event to release workflow
1 parent aa3cd65 commit 0e05284

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
# tags:
66
# - v*
77
workflow_call:
8+
workflow_dispatch:
89

910
concurrency: release-${{ github.ref }}
1011

@@ -13,7 +14,7 @@ jobs:
1314
if: startsWith(github.ref, 'refs/tags/v')
1415
name: Create release
1516
runs-on: ubuntu-latest
16-
environment: Release
17+
environment: release
1718
permissions:
1819
contents: write
1920
steps:
@@ -38,7 +39,7 @@ jobs:
3839
if: startsWith(github.ref, 'refs/tags/v')
3940
name: Publish package to PyPI
4041
runs-on: ubuntu-latest
41-
environment: Release
42+
environment: release
4243
permissions:
4344
id-token: write
4445
steps:
@@ -56,3 +57,6 @@ jobs:
5657

5758
- name: Upload distributions to PyPI
5859
uses: pypa/gh-action-pypi-publish@release/v1
60+
with:
61+
user: __token__
62+
password: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)