File tree Expand file tree Collapse file tree 4 files changed +25
-2
lines changed Expand file tree Collapse file tree 4 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 3636        run : | 
3737          uv run pytest tests 
3838
39+ name : Version replacement based on tag ↔️ 
40+         if : github.ref_type == 'tag' 
41+         run : | 
42+           TAG_VERSION=${GITHUB_REF#refs/tags/} 
43+           echo "Tag version: $TAG_VERSION" 
44+           sed -i "s/0.0.0/$TAG_VERSION/" pyproject.toml 
45+           uv version 
46+ 
3947name : Build and publish 🚀 
4048        env :
4149          UV_PUBLISH_TOKEN : ${{ secrets.PYPI_PASSWORD }} 
Original file line number Diff line number Diff line change 3636        run : | 
3737          uv run pytest tests 
3838
39+ name : Version replacement based on tag ↔️ 
40+         if : github.ref_type == 'tag' 
41+         run : | 
42+           TAG_VERSION=${GITHUB_REF#refs/tags/} 
43+           echo "Tag version: $TAG_VERSION" 
44+           sed -i "s/0.0.0/$TAG_VERSION/" pyproject.toml 
45+           uv version 
46+ 
3947name : Build and publish 🚀 
4048        env :
4149          UV_PUBLISH_TOKEN : ${{ secrets.PYPI_PASSWORD_TEST }} 
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ on: [ push ]
44
55jobs :
66  build :
7- 
87    runs-on : ubuntu-latest 
98    strategy :
109      matrix :
3635name : Test with pytest ✅ 
3736        run : | 
3837          uv run pytest tests 
38+ 
39+ name : Version replacement based on tag ↔️ 
40+         if : github.ref_type == 'tag' 
41+         run : | 
42+           TAG_VERSION=${GITHUB_REF#refs/tags/} 
43+           echo "Tag version: $TAG_VERSION" 
44+           sed -i "s/0.0.0/$TAG_VERSION/" pyproject.toml 
45+           uv version 
Original file line number Diff line number Diff line change 11[project ]
22name  = " keboola.http-client" 
3- version  = " 1.1.5 " 
3+ version  = " 0.0.0 "    #  replaced by actual version based on release tag in github actions 
44dependencies  = [
55    " aiolimiter>=1.2.1" 
66    " httpx>=0.28.1" 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments