mirror of
https://github.com/hoppscotch/hoppscotch
synced 2024-11-22 15:18:35 +00:00
47 lines
987 B
YAML
47 lines
987 B
YAML
# == 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.
|
|
# 3. Profit!
|
|
|
|
|
|
|
|
language: node_js
|
|
node_js:
|
|
- "12"
|
|
|
|
env:
|
|
- MY_VAR=EverythignIsAwesome
|
|
- NODE_ENV=TEST
|
|
- DEPLOY_ENV=GH_PAGES
|
|
|
|
cache:
|
|
directories:
|
|
- "node_modules"
|
|
|
|
branches:
|
|
only:
|
|
- "master"
|
|
|
|
install:
|
|
- "npm install"
|
|
- "npm run generate"
|
|
|
|
notifications:
|
|
webhooks: https://www.travisbuddy.com
|
|
|
|
deploy:
|
|
provider: pages
|
|
skip_cleanup: true
|
|
# Refer to: https://docs.travis-ci.com/user/deployment/pages/#Setting-the-GitHub-token
|
|
github_token: $GITHUB_ACCESS_TOKEN
|
|
target-branch: gh-pages
|
|
local_dir: dist
|
|
on:
|
|
branch: master |