File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish
2
+ on :
3
+ release :
4
+ types : [published]
5
+
6
+ jobs :
7
+ build :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - uses : actions/checkout@v3
11
+ - uses : actions/setup-python@v4
12
+ with :
13
+ python-version : 3.11
14
+ - run : |
15
+ pip install build
16
+ python -m build
17
+ - uses : actions/upload-artifact@v4
18
+ with :
19
+ path : ./dist
20
+
21
+ publish :
22
+ needs : ['build']
23
+ environment : ' publish'
24
+ runs-on : ubuntu-latest
25
+ permissions :
26
+ # IMPORTANT: this permission is mandatory for trusted publishing
27
+ id-token : write
28
+ steps :
29
+ - uses : actions/download-artifact@v4
30
+ - run : |
31
+ ls -R
32
+ - name : Publish package distributions to PyPI
33
+ uses : pypa/gh-action-pypi-publish@release/v1
34
+ with :
35
+ packages-dir : artifact/
You can’t perform that action at this time.
0 commit comments