Browse Source

Added GH Pages credentials to appveyor.yml

pull/46/head
Anairkoen Schno 5 years ago
parent
commit
80162e0509
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      appveyor.yml

+ 6
- 2
appveyor.yml View File

@ -1,6 +1,10 @@
version: 'BSIPA-{branch}-{build}' version: 'BSIPA-{branch}-{build}'
environment: environment:
bsipa_version: '3.12.21' bsipa_version: '3.12.21'
gh_acct_user:
secure: Q4+sZFxDOY7dL9prok446NlMzp3orJA0YmiBz9AYWLs=
gh_acct_pw:
secure: Aqn8uiVQ4vvjwgUYUaO4iGWJwqDVQppkYWU2x6s/p4ZgRrhI28FiIcFv6/wqxS9n
pull_requests: pull_requests:
do_not_increment_build_number: true do_not_increment_build_number: true
install: install:
@ -53,10 +57,10 @@ after_deploy:
} }
git config --global credential.helper store git config --global credential.helper store
#Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n"
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:gh_acct_user):$($env:gh_acct_pw)@github.com`n"
git config --global user.email $env:APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL git config --global user.email $env:APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL
git config --global user.name $env:APPVEYOR_REPO_COMMIT_AUTHOR git config --global user.name $env:APPVEYOR_REPO_COMMIT_AUTHOR
git clone "https://github.com/$env:APPVEYOR_REPO_NAME.git" -b gh-pages origin_site -q
git clone "https://github.com/$($env:APPVEYOR_REPO_NAME).git" -b gh-pages origin_site -q
Copy-Item origin_site/.git _site -recurse Copy-Item origin_site/.git _site -recurse
CD _site CD _site
git add -A 2>&1 git add -A 2>&1


Loading…
Cancel
Save