Update main.yml
This commit is contained in:
		
							parent
							
								
									9318c1603f
								
							
						
					
					
						commit
						c0553946d4
					
				|  | @ -3,7 +3,7 @@ name: build | ||||||
| on: [push] | on: [push] | ||||||
| 
 | 
 | ||||||
| env: | env: | ||||||
|   UPLOAD_USER_FIRMWARE: true |   UPLOAD_USER_FIRMWARE: false | ||||||
| 
 | 
 | ||||||
| jobs: | jobs: | ||||||
|   build: |   build: | ||||||
|  | @ -41,6 +41,13 @@ jobs: | ||||||
|         echo "::set-output name=release_tag::UserBuild_$(date +"%Y.%m.%d_%H-%M")" |         echo "::set-output name=release_tag::UserBuild_$(date +"%Y.%m.%d_%H-%M")" | ||||||
|         echo "::set-output name=status::success" |         echo "::set-output name=status::success" | ||||||
| 
 | 
 | ||||||
|  |     - name: Merge bin files | ||||||
|  |       if: steps.tag.outputs.status == 'success' && !cancelled() | ||||||
|  |       run: | | ||||||
|  |         git clone https://github.com/espressif/esptool.git | ||||||
|  |         ./esptool/esptool.py --chip esp8266 merge_bin  -o build/esp8266_dap_full.bin 0x0 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/esp8266_dap.bin | ||||||
|  |         mv build/esp8266_dap.bin build/esp8266_dap_app.bin | ||||||
|  | 
 | ||||||
|     - name: Release user firmware |     - name: Release user firmware | ||||||
|       uses: softprops/action-gh-release@v1 |       uses: softprops/action-gh-release@v1 | ||||||
|       if: steps.tag.outputs.status == 'success' && !cancelled() |       if: steps.tag.outputs.status == 'success' && !cancelled() | ||||||
|  | @ -48,5 +55,9 @@ jobs: | ||||||
|         GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |         GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||
|       with: |       with: | ||||||
|         tag_name: ${{ steps.tag.outputs.release_tag }} |         tag_name: ${{ steps.tag.outputs.release_tag }} | ||||||
|         files: ${{ env.FIRMWARE }}/esp8266_dap.bin |         files: | | ||||||
|  |           ${{ env.FIRMWARE }}/esp8266_dap_full.bin | ||||||
|  |           ${{ env.FIRMWARE }}/esp8266_dap.bin | ||||||
|  |           ${{ env.FIRMWARE }}/bootloader/bootloader.bin | ||||||
|  |           ${{ env.FIRMWARE }}/partition_table/partition-table.bin | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue