File tree Expand file tree Collapse file tree 1 file changed +25
-4
lines changed Expand file tree Collapse file tree 1 file changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,31 @@ jobs:
12
12
pypi-publish :
13
13
name : Upload release to PyPI
14
14
runs-on : ubuntu-latest
15
+ environment :
16
+ name : release
17
+ url : https://pypi.org/project/thread
18
+ permissions :
19
+ id-token : write
15
20
16
21
steps :
17
- - uses : actions/checkout@v4
18
- - name : Build and publish
19
-
22
+ - name : Checkout repository
23
+ uses : actions/checkout@v4
24
+
25
+ - name : Set up Python 3.x
26
+ uses : actions/setup-python@v5
20
27
with :
21
- pypi_token : ${{ secrets.PYPI_TOKEN }}
28
+ python-version : 3.x
29
+
30
+ - name : Install dependencies
31
+ run : |
32
+ set -xe
33
+ python -m pip install poetry
34
+ python -m poetry install
35
+
36
+ - name : Build Thread
37
+ run : |
38
+ set -xe
39
+ python -m poetry build
40
+
41
+ - name : Publish to PyPI
42
+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments