File tree 1 file changed +56
-0
lines changed
1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ workflow_dispatch :
3
+ push :
4
+ tags :
5
+ - " *.*.*"
6
+
7
+ name : release
8
+
9
+ permissions :
10
+ contents : read
11
+
12
+ jobs :
13
+ build :
14
+ name : Build distributions for PyPI
15
+ runs-on : ubuntu-latest
16
+
17
+ steps :
18
+ - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
19
+
20
+ - name : Set up Python
21
+ uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
22
+
23
+ - name : Install build dependencies
24
+ run : python -m pip install uv
25
+
26
+ - name : Build distributions
27
+ run : python -m uv build
28
+
29
+ - name : Upload distributions
30
+ uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
31
+ with :
32
+ name : pyopenssl-dists
33
+ path : dist/
34
+
35
+ pypi :
36
+ name : Publish to PyPI
37
+ runs-on : ubuntu-latest
38
+ needs :
39
+ - build
40
+
41
+ permissions :
42
+ # Used to authenticate to PyPI via OIDC.
43
+ id-token : write
44
+
45
+ steps :
46
+ - name : fetch dists
47
+ uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
48
+ with :
49
+ name : pyopenssl-dists
50
+ path : dist/
51
+
52
+ - name : publish
53
+ if : github.event_name == 'push'
54
+ uses : pypa/gh-action-pypi-publish@8a08d616893759ef8e1aa1f2785787c0b97e20d6 # v1.10.0
55
+ with :
56
+ attestations : true
You can’t perform that action at this time.
0 commit comments