|
3 | 3 | release: |
4 | 4 | types: [published] |
5 | 5 | workflow_dispatch: |
| 6 | +permissions: |
| 7 | + contents: write |
6 | 8 | env: |
7 | 9 | ORT_VERSION: 1.20.0 |
8 | 10 | ORT_EXTENSIONS_VERSION: 0.12.0 |
@@ -39,13 +41,22 @@ jobs: |
39 | 41 | publish_npm com.github.asus4.onnxruntime-extensions |
40 | 42 | env: |
41 | 43 | NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
42 | | - - name: Upload linux-x64-gpu |
43 | | - uses: actions/upload-artifact@v4 |
44 | | - with: |
45 | | - name: com.github.asus4.onnxruntime.linux-x64-gpu |
46 | | - path: com.github.asus4.onnxruntime.linux-x64-gpu |
47 | | - - name: Upload win-x64-gpu |
48 | | - uses: actions/upload-artifact@v4 |
| 44 | + # Upload packages to GitHub release page |
| 45 | + - name: Zip folders for GitHub release |
| 46 | + if: startsWith(github.ref, 'refs/tags/') |
| 47 | + run: | |
| 48 | + zip -r com.github.asus4.onnxruntime-${{ github.ref_name }}.zip com.github.asus4.onnxruntime |
| 49 | + zip -r com.github.asus4.onnxruntime.unity-${{ github.ref_name }}.zip com.github.asus4.onnxruntime.unity |
| 50 | + zip -r com.github.asus4.onnxruntime-extensions-${{ github.ref_name }}.zip com.github.asus4.onnxruntime-extensions |
| 51 | + zip -r com.github.asus4.onnxruntime.linux-x64-gpu-${{ github.ref_name }}.zip com.github.asus4.onnxruntime.linux-x64-gpu |
| 52 | + zip -r com.github.asus4.onnxruntime.win-x64-gpu-${{ github.ref_name }}.zip com.github.asus4.onnxruntime.win-x64-gpu |
| 53 | + - name: Upload release assets |
| 54 | + uses: softprops/action-gh-release@v2 |
| 55 | + if: startsWith(github.ref, 'refs/tags/') |
49 | 56 | with: |
50 | | - name: com.github.asus4.onnxruntime.win-x64-gpu |
51 | | - path: com.github.asus4.onnxruntime.win-x64-gpu |
| 57 | + files: | |
| 58 | + com.github.asus4.onnxruntime-${{ github.ref_name }}.zip |
| 59 | + com.github.asus4.onnxruntime.unity-${{ github.ref_name }}.zip |
| 60 | + com.github.asus4.onnxruntime-extensions-${{ github.ref_name }}.zip |
| 61 | + com.github.asus4.onnxruntime.linux-x64-gpu-${{ github.ref_name }}.zip |
| 62 | + com.github.asus4.onnxruntime.win-x64-gpu-${{ github.ref_name }}.zip |
0 commit comments