Skip to content

Commit

Permalink
Release at Sun May 19 05:51:08 UTC 2019
Browse files Browse the repository at this point in the history
  • Loading branch information
CircleCI authored and erenard committed May 19, 2019
1 parent 4203143 commit e896375
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
15 changes: 11 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,27 @@ jobs:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: export PATH="~/erenard/reversi/node_modules/.bin:$PATH"
- run: npm install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- run: export PATH="~/erenard/reversi/node_modules/.bin:$PATH"
# run tests!
- run: npm run test:unit
- run: npm run ci:pull-gh-pages
- run: npm run build
- run: git config --global -l #<= totally unnecessary, but "fixes" problem?
- run: git config --global user.email circleci@circleci
- run: git config --global user.name CircleCI
- add_ssh_keys:
fingerprints:
- "00:4f:8a:aa:1c:9e:03:b5:d5:44:69:71:53:31:f3:8b"
- run: npm run ci:push-gh-pages
- run: npm run deploy

# - run:
# name: Check branch of ~/erenard/reversi/dist
# command: git status
# working_directory: ~/erenard/reversi/dist
# - run:
# name: Check branch of ./dist
# command: git status
# working_directory: ./dist
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
dist
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"test:unit": "vue-cli-service test:unit",
"ci:pull-gh-pages": "git clone https://github.com/erenard/mandelbrot.git --branch gh-pages dist",
"ci:push-gh-pages": "cd dist && git add --all && git commit -m \"Release at $(date)\" && git push"
"deploy": "git clone https://github.com/erenard/mandelbrot.git --branch gh-pages dist && vue-cli-service build && cd dist && git init && git add --all && git commit -m \"Release at $(date)\" && git push -f [email protected]:erenard/reversi.git master:gh-pages"
},
"dependencies": {
"core-js": "^2.6.5",
Expand Down
5 changes: 5 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
publicPath: process.env.NODE_ENV === 'production'
? '/reversi/'
: '/'
}

0 comments on commit e896375

Please sign in to comment.