feat: add GitHub CLI installation step to release workflow
This commit is contained in:
		
							
								
								
									
										9
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							| @@ -60,6 +60,15 @@ jobs: | ||||
|         echo "$CHANGELOG" >> $GITHUB_OUTPUT | ||||
|         echo "EOF" >> $GITHUB_OUTPUT | ||||
|      | ||||
|     - name: Install GitHub CLI | ||||
|       run: | | ||||
|         type -p curl >/dev/null || (sudo apt update && sudo apt install curl -y) | ||||
|         curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \ | ||||
|         && sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \ | ||||
|         && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ | ||||
|         && sudo apt update \ | ||||
|         && sudo apt install gh -y | ||||
|  | ||||
|     - name: Create Release and Upload Assets | ||||
|       env: | ||||
|         GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user