hoppscotch/.travis.yml

45 lines
1022 B
YAML
Raw Normal View History

# == INSTRUCTIONS FOR SETTING UP TRAVIS (and GitHub Pages) ==
#
# 1. Find this repository in your Travis-CI dashboard.
# open settings and add an environment variable called
# GITHUB_ACCESS_TOKEN and set it to your personal access token.addons:
# See: https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line
#
# **DO NOT TURN ON 'Display value in build log'!!!!**
#
# 2. Push the code to the repository.
2019-08-24 16:27:46 +00:00
# 3. Set the GitHub Pages source in the GitHub repository settings to the
# gh-pages branch.
2019-08-21 13:18:20 +00:00
language: node_js
node_js:
- "12"
env:
- DEPLOY_ENV=GH_PAGES
cache:
directories:
- "node_modules"
branches:
only:
- "master"
install:
- "npm install"
- "npm run generate"
2019-08-21 13:18:20 +00:00
notifications:
webhooks: https://www.travisbuddy.com
deploy:
provider: pages
2019-08-25 08:33:15 +00:00
skip-cleanup: true
# Refer to: https://docs.travis-ci.com/user/deployment/pages/#Setting-the-GitHub-token
2019-08-25 08:33:15 +00:00
github-token: $GITHUB_ACCESS_TOKEN
target-branch: gh-pages
2019-08-25 08:33:15 +00:00
local-dir: dist
on:
2019-08-25 08:33:15 +00:00
branch: master