浏览代码

Update android.yml

Ray 5 年之前
父节点
当前提交
14e12db675
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      .github/workflows/android.yml

+ 12 - 0
.github/workflows/android.yml

@@ -52,3 +52,15 @@ jobs:
       with:
         name: ${{ env.RELEASE_NAME }}.tar.gz
         path: ./build/${{ env.RELEASE_NAME }}.tar.gz
+        
+    - name: Upload Artifact to Release
+      uses: actions/[email protected]
+      env:
+        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+      with:
+          upload_url: ${{ github.event.release.upload_url }}
+          asset_path: ./build/${{ env.RELEASE_NAME }}.zip
+          asset_name: ${{ env.RELEASE_NAME }}.zip
+          asset_content_type: application/zip
+      if: github.event_name == 'release' && github.event.action == 'published'  
+