File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,19 +18,64 @@ jobs:
1818 uses : ./.github/workflows/build.yaml
1919
2020 # test:
21- # name: Test
22- # uses: ./.github/workflows/test.yaml
23- # secrets: inherit
21+ # name: Test
22+ # uses: ./.github/workflows/test.yaml
23+ # secrets: inherit
2424
2525 release :
26- name : Release
26+ name : Create release
2727 if : startsWith(github.ref, 'refs/tags/v')
2828 needs :
2929 - lint
3030 - build
3131 # - test
32+ runs-on : ubuntu-latest
33+ environment : release
3234 permissions :
3335 contents : write
34- # Trusted publishing doesn't support reusable workflows yet
35- # id-token: write
36- uses : ./.github/workflows/release.yaml
36+ steps :
37+ - name : Download sdist artifact
38+ uses : actions/download-artifact@v6
39+ with :
40+ name : sdist
41+ path : ./dist
42+
43+ - name : Download wheels artifact
44+ uses : actions/download-artifact@v6
45+ with :
46+ name : wheels
47+ path : ./dist
48+
49+ - name : Create release
50+ uses : softprops/action-gh-release@v2
51+ with :
52+ files : ./dist/*
53+
54+ publish :
55+ name : Publish package to PyPI
56+ if : startsWith(github.ref, 'refs/tags/v')
57+ needs :
58+ - lint
59+ - build
60+ # - test
61+ runs-on : ubuntu-latest
62+ environment : release
63+ permissions :
64+ id-token : write
65+ steps :
66+ - name : Download sdist artifact
67+ uses : actions/download-artifact@v6
68+ with :
69+ name : sdist
70+ path : ./dist
71+
72+ - name : Download wheels artifact
73+ uses : actions/download-artifact@v6
74+ with :
75+ name : wheels
76+ path : ./dist
77+
78+ - name : Upload distributions to PyPI
79+ uses : pypa/gh-action-pypi-publish@release/v1
80+ with :
81+ skip-existing : true
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments