Skip to content

Commit 8002765

Browse files
ci: trusted publish (#480)
* trusted publish * ci: 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 79099fa commit 8002765

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.github/workflows/cd.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,22 @@ name: CD
33
on:
44
workflow_dispatch:
55
pull_request:
6+
push:
67
branches:
7-
- master
8+
- master
89
release:
910
types:
10-
- published
11+
- published
1112

1213
jobs:
1314
dist:
1415
runs-on: ubuntu-latest
1516
steps:
16-
- uses: actions/checkout@v3
17-
18-
- name: Build wheel and SDist
19-
run: pipx run build
20-
21-
- uses: actions/upload-artifact@v3
22-
with:
23-
path: dist/*
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
2420

25-
- name: Check metadata
26-
run: pipx run twine check dist/*
21+
- uses: hynek/build-and-inspect-python-package@v2
2722

2823
publish:
2924
needs: [dist]

0 commit comments

Comments
 (0)