File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,19 @@ jobs:
1010 name : Create release and publish distribution to TestPyPI
1111 runs-on : ubuntu-latest
1212 steps :
13- - uses : actions/checkout@v2
13+ - name : Checkout code
14+ uses : actions/checkout@v2
1415 - name : Set up Python 3.8
16+ uses : actions/setup-python@v1
1517 with :
1618 python-version : 3.8
17- - name : Install dependencies
18- run : >-
19- python -m pip install --upgrade pip
20- python -m pip install flit
21- - name : Publish distibution to TestPyPI
22- if : github.repository == 'microsoftgraph/msgraph-sdk-python-core' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
23- run : >-
24- flit publish --repository https://test.pypi.org/legacy/ --username msgraphsdkteam --password ${{ secrets.TEST_PYPI_API_TOKEN }}
19+ - name : Install flit
20+ run : |
21+ pip install flit
22+ - name : Publish the distibution to TestPyPI
23+ if : github.repository == 'microsoftgraph/msgraph-sdk-python-core'
24+ run : flit publish
25+ env :
26+ FLIT_INDEX_URL : https://test.pypi.org/legacy/
27+ FLIT_USERNAME : __token__
28+ FLIT_PASSWORD : ${{ secrets.TEST_PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments