mirror of
https://github.com/bitwarden/help
synced 2025-12-12 14:23:15 +00:00
build badge
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Build Website
|
name: Build
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
[](https://ci.appveyor.com/project/bitwarden/help)
|

|
||||||
[](https://gitter.im/bitwarden/Lobby)
|
[](https://gitter.im/bitwarden/Lobby)
|
||||||
|
|
||||||
# Bitwarden Help Center
|
# Bitwarden Help Center
|
||||||
|
|||||||
50
appveyor.yml
50
appveyor.yml
@@ -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
|
|
||||||
@@ -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'
|
|
||||||
Reference in New Issue
Block a user