File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -71,15 +71,12 @@ jobs:
7171          path : ./wheelhouse/*.whl 
7272
7373  release :
74-     if : ${{  github.ref ==  'refs/heads/develop' }} 
74+     if : startsWith( github.ref,  'refs/tags/') 
7575    needs : build 
7676    runs-on : ubuntu-latest 
7777    environment : release 
7878    permissions :
79-       contents : write  #  to be able to publish a GitHub release
80-       issues : write  #  to be able to comment on released issues
81-       pull-requests : write  #  to be able to comment on released pull requests
82-       id-token : write  #  to enable use of OIDC for npm provenance
79+       contents : write  #  grants permission to create a release on github
8380    steps :
8481      - uses : actions/checkout@v4 
8582
@@ -93,21 +90,22 @@ jobs:
9390          merge-multiple : true 
9491          pattern : wheels-* 
9592
96-       - name : Github release 
97-         uses : codfish/semantic-release-action@v3 
98-         id : semantic 
99-         env :
100-           GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 
101- 
102-       - name : PyPI release 
103-         if : steps.semantic.outputs.new-release-published == 'true' 
93+       - name : Release PyPI 
10494        run : | 
10595          export UV_PUBLISH_PASSWORD="${{ secrets.PYPI_TOKEN }}" 
10696          export UV_PUBLISH_USERNAME="__token__" 
10797          uv publish --publish-url https://upload.pypi.org/legacy/ 
10898
99+        - name : Github release 
100+         id : github-release 
101+         uses : softprops/action-gh-release@v2 
102+         with :
103+           files : dist/* 
104+           fail_on_unmatched_files : true 
105+           generate_release_notes : true 
106+ 
109107      - uses : slackapi/slack-github-action@v2.0.0 
110-         if : always() && steps.semantic.outputs.new-release-published == 'true'  
108+         if : always() 
111109        with :
112110          method : chat.postMessage 
113111          token : ${{ secrets.SLACK_BOT_TOKEN }} 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments