File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 36
36
type : boolean
37
37
secrets :
38
38
PYPI_TEST_API_TOKEN :
39
- required : true
39
+ required : false
40
40
PYPI_PROD_API_TOKEN :
41
41
required : true
42
42
jobs :
@@ -66,13 +66,19 @@ jobs:
66
66
poetry show -vv
67
67
shell : bash
68
68
69
- - name : Configure PyPI Repos in Poetry and Poetry Build
69
+ - name : Configure Test PyPI Repo
70
+ if : ${{ inputs.DO_TEST_PUBLISH_FIRST }}
70
71
env :
71
72
PYPI_TEST_API_TOKEN : ${{ secrets.PYPI_TEST_API_TOKEN }}
73
+ run : |
74
+ poetry config pypi-token.testpypi $PYPI_TEST_API_TOKEN
75
+ shell : bash
76
+
77
+ - name : Configure Prod PyPI Repo and Poetry Build
78
+ env :
72
79
PYPI_PROD_API_TOKEN : ${{ secrets.PYPI_PROD_API_TOKEN }}
73
80
run : |
74
81
poetry config repositories.testpypi https://test.pypi.org/legacy/
75
- poetry config pypi-token.testpypi $PYPI_TEST_API_TOKEN
76
82
poetry config pypi-token.pypi $PYPI_PROD_API_TOKEN
77
83
poetry build
78
84
shell : bash
You can’t perform that action at this time.
0 commit comments