File tree Expand file tree Collapse file tree 1 file changed +18
-16
lines changed Expand file tree Collapse file tree 1 file changed +18
-16
lines changed Original file line number Diff line number Diff line change @@ -41,21 +41,23 @@ jobs:
4141    if : github.event_name == 'push' && contains(github.ref, 'refs/tags/') 
4242    runs-on : ubuntu-20.04 
4343    steps :
44-       - name : Checkout repo 
45-         uses : actions/checkout@v3 
46-       - name : Set up python 
47-         uses : actions/setup-python@v4 
44+       - name : Check out the repository 
45+         uses : actions/checkout@v4 
46+ 
47+       - name : " Setup Python, Poetry and Dependencies" 
48+         uses : packetcoders/action-setup-cache-python-poetry@main 
4849        with :
49-           python-version : 3.8 
50-       - name : Bootstrap poetry 
51-         run : | 
52-           curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1 
53- name : Install dependencies 
54-         run : poetry install 
55-       - name : Publish to pypi 
56-         run : | 
57-           poetry config repositories.remote https://upload.pypi.org/legacy/ 
58-           poetry --no-interaction -v publish --build --repository remote --username "$PYPI_USERNAME" --password "$PYPI_PASSWORD" 
50+           python-version : " 3.11" 
51+           poetry-version : " 1.7.1" 
52+ 
53+       - name : Configure poetry 
5954        env :
60-           PYPI_USERNAME : ${{ secrets.PYPI_USERNAME }} 
61-           PYPI_PASSWORD : ${{ secrets.PYPI_PASSWORD }} 
55+           PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }} 
56+         run : | 
57+           poetry config pypi-token.pypi "$PYPI_TOKEN" 
58+ 
59+ name : Build the Python package 
60+         run : poetry build 
61+ 
62+       - name : Publish the package to PyPI 
63+         run : poetry publish 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments