Skip to content

Commit 79099fa

Browse files
ci: trusted (#479)
* trusted publish * ci: trusted publish * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent beabdac commit 79099fa

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

.github/workflows/cd.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,17 @@ jobs:
2525
- name: Check metadata
2626
run: pipx run twine check dist/*
2727

28+
publish:
29+
needs: [dist]
30+
environment: release
31+
permissions:
32+
id-token: write
33+
runs-on: ubuntu-latest
34+
if: github.event_name == 'release' && github.event.action == 'published'
35+
steps:
36+
- uses: actions/download-artifact@v4
37+
with:
38+
name: Packages
39+
path: dist
2840

29-
publish:
30-
needs: [dist]
31-
environment: release
32-
permissions:
33-
id-token: write
34-
runs-on: ubuntu-latest
35-
if: github.event_name == 'release' && github.event.action == 'published'
36-
steps:
37-
- uses: actions/download-artifact@v4
38-
with:
39-
name: Packages
40-
path: dist
41-
42-
- uses: pypa/gh-action-pypi-publish@release/v1
41+
- uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)