diff --git a/build-and-deploy.ps1 b/build-and-deploy.ps1 index 7eef1d781..7c0d4464c 100644 --- a/build-and-deploy.ps1 +++ b/build-and-deploy.ps1 @@ -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." \ No newline at end of file +#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." \ No newline at end of file