File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -17,35 +17,30 @@ jobs:
1717        with :
1818          fetch-depth : 0 
1919
20-       - name : Build package 
21-         run : pipx run build 
22- 
23-       - uses : actions/upload-artifact@v4 
24-         with :
25-           path : dist/* 
20+       - uses : hynek/build-and-inspect-python-package@v2 
2621
2722  deploy :
2823    if : github.event_name == 'release' && github.event.action == 'published' 
24+     needs : [dist] 
2925    runs-on : ubuntu-latest 
3026    environment :
3127      name : pypi 
3228      url : https://pypi.org/p/scikit-build-core 
3329    permissions :
3430      id-token : write 
3531      attestations : write 
36-       contents : read 
37- 
38-     needs : [dist] 
3932
4033    steps :
4134      - uses : actions/download-artifact@v4 
4235        with :
43-           name : artifact 
36+           name : Packages 
4437          path : dist 
4538
4639      - name : Generate artifact attestation for sdist and wheel 
47-         uses : actions/attest-build-provenance@v1.4.3  
40+         uses : actions/attest-build-provenance@v1 
4841        with :
4942          subject-path : " dist/*" 
5043
5144      - uses : pypa/gh-action-pypi-publish@release/v1 
45+         with :
46+           attestations : true 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments