File tree Expand file tree Collapse file tree 1 file changed +47
-1
lines changed Expand file tree Collapse file tree 1 file changed +47
-1
lines changed Original file line number Diff line number Diff line change 9
9
name : thermoflex
10
10
11
11
on :
12
- push :
12
+ pull_request :
13
13
branches :
14
14
- main
15
15
69
69
uses : pypa/gh-action-pypi-publish@release/v1
70
70
with :
71
71
packages-dir : python-serial/dist/
72
+
73
+ gh-release-publish :
74
+ runs-on : ubuntu-latest
75
+ needs :
76
+ - release-build
77
+ permissions :
78
+ # IMPORTANT: this permission is mandatory for trusted publishing
79
+ contents : write
80
+ id-token : write
81
+
82
+ steps :
83
+ - name : Retrieve release distributions
84
+ uses : actions/download-artifact@v4
85
+ with :
86
+ name : release-dists
87
+ path : python-serial/dist/
88
+
89
+ - name : Sign the dists with Sigstore
90
+
91
+ with :
92
+ inputs : >-
93
+ ./python-serial/dist/*.tar.gz
94
+ ./python-serial/dist/*.whl
95
+
96
+ - name : Create GitHub Release
97
+ env :
98
+ GITHUB_TOKEN : ${{ github.token }}
99
+ run : >-
100
+ gh release create
101
+ "$GITHUB_REF_NAME"
102
+ --repo "$GITHUB_REPOSITORY"
103
+ --notes ""
104
+
105
+ - name : Upload artifact signatures to GitHub Release
106
+ env :
107
+ GITHUB_TOKEN : ${{ github.token }}
108
+ # Upload to GitHub Release using the `gh` CLI.
109
+ # `dist/` contains the built packages, and the
110
+ # sigstore-produced signatures and certificates.
111
+ run : >-
112
+ gh release upload
113
+ "$GITHUB_REF_NAME" dist/**
114
+ --repo "$GITHUB_REPOSITORY"
115
+
116
+
117
+
You can’t perform that action at this time.
0 commit comments