1
0
mirror of https://github.com/bitwarden/help synced 2025-12-10 05:13:43 +00:00

build badge

This commit is contained in:
Kyle Spearrin
2020-02-14 13:17:33 -05:00
parent 9e27be15f0
commit 38f3c82a04
4 changed files with 2 additions and 79 deletions

View File

@@ -1,4 +1,4 @@
name: Build Website
name: Build
on: [push, pull_request]

View File

@@ -1,4 +1,4 @@
[![appveyor build](https://ci.appveyor.com/api/projects/status/83ywnqo5i72aubfv?svg=true)](https://ci.appveyor.com/project/bitwarden/help)
![Build](https://github.com/bitwarden/help/workflows/Build/badge.svg)
[![Join the chat at https://gitter.im/bitwarden/Lobby](https://badges.gitter.im/bitwarden/Lobby.svg)](https://gitter.im/bitwarden/Lobby)
# Bitwarden Help Center

View File

@@ -1,50 +0,0 @@
image:
- Ubuntu1804
branches:
except:
- gh-pages
stack: node 10, ruby 2.6
init:
- sh: |
if [ "${DEBUG_SSH}" == "true" ]
then
curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -
fi
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
- npm --version
- ruby --version
- jekyll --version
build_script:
- npm install
- sh: |
if [ "${GH_TOKEN}" != "" ]
then
npm run deploy
else
npm run build
fi
on_finish:
- sh: |
if [ "${DEBUG_SSH}" == "true" ]
then
export APPVEYOR_SSH_BLOCK=true
curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -
fi

View File

@@ -1,27 +0,0 @@
# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
trigger:
- master
pool:
vmImage: 'Ubuntu-16.04'
steps:
- task: UseRubyVersion@0
displayName: 'Use Ruby >= 2.4'
- script: 'gem install jekyll bundler'
displayName: 'Install jekyll and bundler gems'
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: |
npm install
npm run build
displayName: 'npm install and build'