-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix remote url warning and improve security on documentation release.
- Loading branch information
Showing
1 changed file
with
3 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,10 +66,6 @@ cinst docfx --version $env:DocFXVersion | |
git config --global core.autocrlf true | ||
git config --global core.eol lf | ||
|
||
git config --global credential.helper store | ||
|
||
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:GITHUB_ACCESS_TOKEN):[email protected]`n" | ||
|
||
git config --global user.email $env:GITHUB_EMAIL | ||
git config --global user.name "KeRNeLith" | ||
|
||
|
@@ -106,6 +102,9 @@ if (-not [string]::IsNullOrEmpty($(git status --porcelain))) | |
"Pushing the new documentation to the remote gh-pages branch..." | ||
|
||
git commit -m "Update generated documentation." | ||
|
||
git remote set-url origin https://$($env:GITHUB_ACCESS_TOKEN)@github.com/KeRNeLith/ImmediateReflection.git | ||
|
||
# -q is to avoid git to output thing to stderr for no reason | ||
git push -q origin gh-pages | ||
|
||
|