mirror of
				https://github.com/0glabs/0g-chain.git
				synced 2025-10-31 15:17:27 +00:00 
			
		
		
		
	add Upload Release Assets workflow (#49)
* Create upload-release-assets.yml
This commit is contained in:
		
							parent
							
								
									32bcc7f4e3
								
							
						
					
					
						commit
						9ca8359202
					
				
							
								
								
									
										25
									
								
								.github/workflows/upload-release-assets.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								.github/workflows/upload-release-assets.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,25 @@ | ||||
| name: Upload Release Assets | ||||
| 
 | ||||
| on: | ||||
|   release: | ||||
|     types: [created] | ||||
| 
 | ||||
| jobs: | ||||
|   build: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|     - uses: actions/checkout@v4 | ||||
|     - name: Set up Go | ||||
|       uses: actions/setup-go@v4 | ||||
|       with: | ||||
|         go-version: '1.20' | ||||
|     - name: Build | ||||
|       run: make build | ||||
|     - name: Rename file | ||||
|       run: mv ./out/linux/0gchaind ./out/linux/0gchaind-linux-${{ github.ref_name }} | ||||
|     - name: Upload Release Asset | ||||
|       uses: softprops/action-gh-release@v2 | ||||
|       with: | ||||
|         files: ./out/linux/0gchaind-linux-${{ github.ref_name }} | ||||
|       env: | ||||
|         GITHUB_TOKEN: ${{ secrets.ZG_UPLOAD_ASSET }} | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 0g-wh
						0g-wh