Skip to content

Commit

Permalink
use git-credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Mar 22, 2019
1 parent 0638dc8 commit 25e7b94
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
16 changes: 15 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ init:
install:
- gem install jekyll bundler
- sh: |
if [ "${GH_TOKEN}" != "" ]
then
git config --global credential.helper store
echo "https://${GH_TOKEN}:x-oauth-basic@github.com" >> ~/.git-credentials
git config --global user.email "ci@bitwarden.com"
git config --global user.name "Bitwarden CI"
fi
before_build:
- node --version
Expand All @@ -25,7 +33,13 @@ before_build:

build_script:
- npm install
- npm run deploy:ci
- sh: |
if [ "${GH_TOKEN}" != "" ]
then
npm run deploy:ci
else
npm run build
fi
on_finish:
- sh: |
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"scripts": {
"build": "gulp build && jekyll build",
"build:watch": "gulp build && jekyll serve --watch --host=0.0.0.0",
"deploy": "npm run build && gh-pages --dotfiles --dist _site",
"deploy:ci": "npm run build && gh-pages --dotfiles --dist _site --silent --repo \"https://${GH_TOKEN}@github.com/bitwarden/help.git\""
"deploy": "npm run build && gh-pages --dotfiles --dist _site"
},
"devDependencies": {
"bootstrap-sass": "3.3.7",
Expand Down

0 comments on commit 25e7b94

Please sign in to comment.