Skip to content

Commit

Permalink
Fix remote url warning and improve security on documentation release.
Browse files Browse the repository at this point in the history
  • Loading branch information
KeRNeLith committed Sep 1, 2020
1 parent 2f1821a commit 076615a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build/releaseDoc.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 076615a

Please sign in to comment.