Push assets to release branch due to GitHub Actions error
This commit is contained in:
		
							
								
								
									
										11
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							@@ -37,6 +37,17 @@ jobs:
 | 
				
			|||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          sha256sum dlc.dat > dlc.dat.sha256sum
 | 
					          sha256sum dlc.dat > dlc.dat.sha256sum
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Git push assets to "release" branch
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          git init
 | 
				
			||||||
 | 
					          git config --local user.name "${{ github.actor }}"
 | 
				
			||||||
 | 
					          git config --local user.email "${{ github.actor }}@users.noreply.github.com"
 | 
				
			||||||
 | 
					          git checkout -b release
 | 
				
			||||||
 | 
					          git add dlc.dat dlc.dat.sha256sum
 | 
				
			||||||
 | 
					          git commit -m "${{ env.RELEASE_NAME }}"
 | 
				
			||||||
 | 
					          git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
 | 
				
			||||||
 | 
					          git push -f -u origin release
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Create a release
 | 
					      - name: Create a release
 | 
				
			||||||
        id: create_release
 | 
					        id: create_release
 | 
				
			||||||
        uses: actions/create-release@v1
 | 
					        uses: actions/create-release@v1
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user