Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Upgrade to Now version 2 #79

Merged
merged 7 commits into from
Nov 25, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
package-lock.json
yarn.lock
27 changes: 0 additions & 27 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,18 @@
language: node_js
node_js:
- node

os:
- linux
- osx

cache:
directories:
- node_modules

install:
- npm install

script:
- npx commitlint-travis
- npx stylelint './src/**/*.js'
- npx eslint ./src
- npx react-scripts test --coverage
- npm run build

after_success:
- npx codecov

deploy:
- provider: script
skip_cleanup: true
script: >-
npx semantic-release --dry-run --branch develop &&
npm run build &&
cp now.staging.json now.json &&
npx now deploy --token=$NOW_TOKEN --team=personal --name=bycedric-website-staging --regions=bru ./build &&
npx now alias --token=$NOW_TOKEN --team=personal
on:
condition: $TRAVIS_OS_NAME = linux
branch: develop
node: node
- provider: script
skip_cleanup: true
script: npx semantic-release
on:
condition: $TRAVIS_OS_NAME = linux
branch: master
node: node
21 changes: 14 additions & 7 deletions now.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
{
"type": "docker",
"features": {
"cloud": "v2"
},
"version": 2,
"name": "github-website",
"builds": [
{ "src": "package.json", "use": "@now/static-build" }
],
"routes": [
{ "src": "^/robots\\.txt", "dest": "/robots.txt" },
{ "src": "^/static/(.*)", "dest": "/static/$1" },
{ "src": ".*", "dest": "/index.html" }
],
"build": {
"env": [
"GITHUB_USERNAME"
]
"env": {
"NODE_PATH": "./",
"REACT_APP_GITHUB_USERNAME": "byCedric"
}
}
}
10 changes: 0 additions & 10 deletions now.staging.json

This file was deleted.

Loading