File tree 1 file changed +3
-29
lines changed
1 file changed +3
-29
lines changed Original file line number Diff line number Diff line change 5
5
- created
6
6
7
7
jobs :
8
- test-publish :
9
- name : Test Publish
10
- runs-on :
11
- ubuntu-latest
12
- strategy :
13
- fail-fast : false
14
- matrix :
15
- python-version : [ "3.10" ]
16
- poetry-version : [ "1.4.2" ]
17
- os : [ ubuntu-latest ]
18
- steps :
19
- - uses : actions/checkout@v3
20
- - uses : actions/setup-python@v4
21
- with :
22
- python-version : ${{ matrix.python-version }}
23
- - name : Run image
24
- uses : abatilo/actions-poetry@v2
25
- with :
26
- poetry-version : ${{ matrix.poetry-version }}
27
- - name : Build Project
28
- run : poetry build
29
- - name : Upload release to PyPI Test
30
- uses : pypa/gh-action-pypi-publish@release/v1
31
- with :
32
- password : ${{ secrets.TEST_PYPI_API_TOKEN }}
33
- repository-url : https://test.pypi.org/legacy/
34
8
publish :
35
- needs : test-publish
36
9
name : Publish to PyPI
37
10
runs-on :
38
11
ubuntu-latest
12
+ environment : pypi
13
+ permissions :
14
+ id-token : write
39
15
strategy :
40
16
fail-fast : false
41
17
matrix :
55
31
run : poetry build
56
32
- name : Upload release to PyPI
57
33
uses : pypa/gh-action-pypi-publish@release/v1
58
- with :
59
- password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments