File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
test-and-publish-flow :
10
10
runs-on : ubuntu-latest
11
+ permissions :
12
+ id-token : write
11
13
steps :
12
14
- name : Check out repository
13
- uses : actions/checkout@v2
15
+ uses : actions/checkout@v4
14
16
15
17
- name : Set up python
16
- uses : actions/setup-python@v2
18
+ uses : actions/setup-python@v4
17
19
with :
18
- python-version : 3.9
20
+ python-version : 3.11
19
21
20
22
- name : Run Poetry image
21
23
22
24
with :
23
- poetry-version : 1.3 .1
25
+ poetry-version : 1.7 .1
24
26
25
27
- name : Install library
26
28
run : poetry install --no-interaction
43
45
- 'pyproject.toml'
44
46
45
47
- if : ${{ (github.ref == 'refs/heads/master') && (steps.changes.outputs.root == 'true')}}
46
- name : Build and publish
47
- env :
48
- PYPI_USER : ${{ secrets.PYPI_USER }}
49
- PYPI_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
50
- run : poetry publish --username $PYPI_USER --password $PYPI_PASSWORD --build
48
+ name : Build
49
+ run : poetry build
50
+
51
+ - if : ${{ (github.ref == 'refs/heads/master') && (steps.changes.outputs.root == 'true')}}
52
+ name : Publish release distributions to PyPI
53
+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments