File tree 1 file changed +24
-5
lines changed
1 file changed +24
-5
lines changed Original file line number Diff line number Diff line change 7
7
jobs :
8
8
build :
9
9
runs-on : ubuntu-latest
10
+ # https://docs.pypi.org/trusted-publishers/using-a-publisher/
11
+ environment : release
12
+ permissions :
13
+ id-token : write
14
+ contents : read
10
15
steps :
11
16
- name : Checkout
12
17
uses : actions/checkout@v4
13
18
14
- - name : Build and publish to pypi
15
-
19
+ - name : Install Poetry
20
+ run : |
21
+ pipx install poetry
22
+
23
+ - name : Set up Python
24
+ uses : actions/setup-python@v4
16
25
with :
17
- python_version : " 3.9"
18
- pypi_token : ${{ secrets.PYPI_TOKEN }}
19
- poetry_install_options : " --without dev"
26
+ python-version : ' 3.9'
27
+ cache : ' poetry'
28
+
29
+ - name : Install dependencies
30
+ run : |
31
+ poetry install
32
+
33
+ - name : Build
34
+ run : |
35
+ poetry build
36
+
37
+ - name : Publish to pypi
38
+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments