mirror of
https://github.com/greenshot/greenshot
synced 2025-08-22 06:23:24 -07:00
Add git pull
This commit is contained in:
parent
2294e519c2
commit
2b36ff6f3f
1 changed files with 18 additions and 11 deletions
|
@ -1,3 +1,7 @@
|
|||
# USAGE
|
||||
#
|
||||
|
||||
|
||||
# Variables
|
||||
$RepoPath = "." # Replace with your local repo path
|
||||
$ArtifactsPath = "$RepoPath\artifacts"
|
||||
|
@ -17,6 +21,9 @@ $SolutionFile = "$RepoPath\src\Greenshot.sln"
|
|||
#$Env:Picasa_ClientId = "your_picasa_client_id"
|
||||
#$Env:Picasa_ClientSecret = "your_picasa_client_secret"
|
||||
|
||||
# Step 0: Update Local Repository
|
||||
git pull
|
||||
|
||||
# Step 1: Restore NuGet Packages
|
||||
Write-Host "Restoring NuGet packages..."
|
||||
msbuild "$SolutionFile" /p:Configuration=Release /restore /t:PrepareForBuild
|
||||
|
@ -136,14 +143,14 @@ if ($LASTEXITCODE -ne 0) {
|
|||
Write-Host "File uploaded successfully: $FileName"
|
||||
|
||||
# Step 7: Trigger GitHub Pages Rebuild
|
||||
Write-Host "Triggering GitHub Pages rebuild..."
|
||||
Invoke-RestMethod `
|
||||
-Uri "https://api.github.com/repos/jklingen/greenshot/pages/builds" `
|
||||
-Method POST `
|
||||
-Headers $Headers
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
Write-Error "Failed to trigger GitHub Pages rebuild."
|
||||
exit $LASTEXITCODE
|
||||
}
|
||||
|
||||
Write-Host "GitHub Pages rebuild triggered successfully."
|
||||
#Write-Host "Triggering GitHub Pages rebuild..."
|
||||
#Invoke-RestMethod `
|
||||
# -Uri "https://api.github.com/repos/jklingen/greenshot/pages/builds" `
|
||||
# -Method POST `
|
||||
# -Headers $Headers
|
||||
#if ($LASTEXITCODE -ne 0) {
|
||||
# Write-Error "Failed to trigger GitHub Pages rebuild."
|
||||
# exit $LASTEXITCODE
|
||||
#}
|
||||
#
|
||||
#Write-Host "GitHub Pages rebuild triggered successfully."
|
Loading…
Add table
Add a link
Reference in a new issue