Procházet zdrojové kódy

Upload method change

Upload method change
Aizawa Hikaru před 4 roky
rodič
revize
4542d7ea0c
2 změnil soubory, kde provedl 14 přidání a 2 odebrání
  1. 9 2
      .github/workflows/Make.yml
  2. 5 0
      README.md

+ 9 - 2
.github/workflows/Make.yml

@@ -98,11 +98,18 @@ jobs:
         lunch ${{ github.event.inputs.LIBRARY_NAME }}_${{ github.event.inputs.DEVICE_NAME }}-eng 
         make clean
         make recoveryimage -j$(nproc --all)        
-      
+    
+    - name: Compressed file
+      run: |
+        PATH=~/bin:$PATH
+        cd workspace
+        zip -r ./${{ github.event.inputs.DEVICE_NAME }}-Built.zip ./out/target/product/${{ github.event.inputs.DEVICE_NAME }}/*
+
+
     - name: Upload to Release
       uses: softprops/action-gh-release@v1
       with:
-        files: workspace/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/recovery.img
+        files: ${{ github.event.inputs.DEVICE_NAME }}-Built.zip
         name: ${{ github.event.inputs.DEVICE_NAME }}-${{ github.run_id }}
         tag_name: ${{ github.run_id }}
         body: Recovery for ${{ github.event.inputs.DEVICE_NAME }}

+ 5 - 0
README.md

@@ -5,6 +5,11 @@
 ---
 
 ## 更新说明
+```
+= 2021/10/30
+- 优化文件打包上传方式,支持输出原始镜像
+```
+
 ```
 = 2021/10/29: 
 - 重构 2.0 版本