Update AutoBuild.yml
This commit is contained in:
		
							parent
							
								
									c20aaba22a
								
							
						
					
					
						commit
						f8b24979bd
					
				|  | @ -33,7 +33,8 @@ env: | ||||||
|   CUSTOM_SCRIPT: ./Scripts/diy-script.sh |   CUSTOM_SCRIPT: ./Scripts/diy-script.sh | ||||||
|   TZ: Asia/Shanghai |   TZ: Asia/Shanghai | ||||||
|   UPLOAD_RELEASE: true |   UPLOAD_RELEASE: true | ||||||
|   UPLOAD_ARTIFACT: true |   UPLOAD_FIRMWARE: true | ||||||
|  |   UPLOAD_BIN_DIR: false | ||||||
| 
 | 
 | ||||||
| jobs: | jobs: | ||||||
|   build: |   build: | ||||||
|  | @ -97,11 +98,18 @@ jobs: | ||||||
| 
 | 
 | ||||||
|     - name: Upload Firmware to Artifacts |     - name: Upload Firmware to Artifacts | ||||||
|       uses: actions/upload-artifact@main |       uses: actions/upload-artifact@main | ||||||
|       if: env.UPLOAD_ARTIFACT == 'true' && !cancelled() |       if: env.UPLOAD_FIRMWARE == 'true' && !cancelled() | ||||||
|       with: |       with: | ||||||
|         name: OpenWrt |         name: OpenWrt_Firmware | ||||||
|         path: openwrt/bin/Firmware |         path: openwrt/bin/Firmware | ||||||
|          |          | ||||||
|  |     - name: Upload Firmware Directory to Artifacts | ||||||
|  |       uses: actions/upload-artifact@main | ||||||
|  |       if: env.UPLOAD_BIN_DIR == 'true' && !cancelled() | ||||||
|  |       with: | ||||||
|  |         name: OpenWrt_Bin | ||||||
|  |         path: openwrt/bin | ||||||
|  | 
 | ||||||
|     - name: Generate Tag |     - name: Generate Tag | ||||||
|       id: tag |       id: tag | ||||||
|       if: env.UPLOAD_RELEASE == 'true' && !cancelled() |       if: env.UPLOAD_RELEASE == 'true' && !cancelled() | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue