File tree 2 files changed +16
-11
lines changed
2 files changed +16
-11
lines changed Original file line number Diff line number Diff line change 10
10
pypi :
11
11
12
12
runs-on : ubuntu-latest
13
+ environment : release
14
+ permissions :
15
+ id-token : write
13
16
14
17
steps :
15
18
- uses : actions/checkout@v3
@@ -22,12 +25,12 @@ jobs:
22
25
- name : Install dependencies
23
26
run : pip install --user -U pip poetry
24
27
25
- - name : Build and publish
26
- env :
27
- _PASSWORD : ${{ secrets.TEST_PYPI_TOKEN }}
28
+ - name : Build
28
29
run : |
29
30
poetry install
30
31
poetry build
31
- poetry config repositories.testpypi https://test.pypi.org/legacy/
32
- poetry config pypi-token.testpypi $_PASSWORD
33
- poetry publish --repository testpypi
32
+
33
+ - name : Publish
34
+ uses : pypa/gh-action-pypi-publish@release/v1
35
+ with :
36
+ repository-url : https://test.pypi.org/legacy/
Original file line number Diff line number Diff line change 30
30
31
31
pypi :
32
32
runs-on : ubuntu-latest
33
+ environment : release
34
+ permissions :
35
+ id-token : write
33
36
34
37
steps :
35
38
- uses : actions/checkout@v3
@@ -42,11 +45,10 @@ jobs:
42
45
- name : Install dependencies
43
46
run : pip install --user --upgrade pip poetry
44
47
45
- - name : Build and publish
46
- env :
47
- _PASSWORD : ${{ secrets.TEST_PYPI_TOKEN }}
48
+ - name : Build
48
49
run : |
49
50
poetry install
50
51
poetry build
51
- poetry config pypi-token.pypi $_PASSWORD
52
- poetry publish
52
+
53
+ - name : Publish
54
+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments