File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Release
3
+
4
+ # yamllint disable-line rule:truthy
5
+ on :
6
+ release :
7
+ types :
8
+ - published
9
+
10
+ jobs :
11
+ release :
12
+ name : Releasing to PyPi
13
+ runs-on : ubuntu-latest
14
+ environment :
15
+ name : release
16
+ url : https://pypi.org/project/webrtc-models/
17
+ permissions :
18
+ contents : write
19
+ id-token : write
20
+ steps :
21
+ - name : ⤵️ Check out code from GitHub
22
+
23
+ - name : 🏗 Set up uv
24
+ uses : astral-sh/setup-uv@v3
25
+ with :
26
+ enable-cache : true
27
+ - name : 🏗 Set package version
28
+ run : |
29
+ sed -i "s/^version = \".*\"/version = \"${{ github.event.release.tag_name }}\"/" pyproject.toml
30
+ - name : 🏗 Build package
31
+ run : uv build
32
+ - name : 🚀 Publish to PyPi
33
+ run : uv publish
34
+ - name : ✍️ Sign published artifacts
35
+
36
+ with :
37
+ inputs : ./dist/*.tar.gz ./dist/*.whl
38
+ release-signing-artifacts : true
You can’t perform that action at this time.
0 commit comments