Skip to content

Commit 13fe74d

Browse files
committed
website: Use Hexo deploy vs bash script
1 parent 00ec15a commit 13fe74d

File tree

6 files changed

+9
-45
lines changed

6 files changed

+9
-45
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ scripts/split-*.js
2323
scripts/main.js.map
2424
website/public
2525
website/db.json
26+
website/.deploy_git

CHANGELOG.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,16 @@ Ideas that will be planned and find their way into a release at one point
2626
- [ ] Port a few more tricky/inter-depending Go functions
2727
- [ ] Parse `require`s with AST just like Browserify does. Then we can add dependencies back to website
2828

29-
## v2.0.2
29+
## v2.0.3
3030

3131
Released: Not yet
3232

3333
- [ ] Triage all open issues and PRs via waffle.io
34-
- [ ] Auto-deploys of `master` to http://locutusjs.io via Travis CI
3534
- [ ] Address the 25 remaining test failures that are currently skipped (find out which ones via `npm run test:languages:noskip`)
3635
- [ ] website: Add social buttons
3736
- [ ] website: Render authors server-side
37+
- [ ] website: Auto-deploys of `master` to http://locutusjs.io via Travis CI
38+
- [x] website: Use Hexo deploy vs bash script
3839

3940
## v2.0.2
4041

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"test:module": "babel-node test/module/module.js",
7373
"test:util": "mocha --compilers js:babel-register --reporter spec test/util/",
7474
"test": "npm-run-all test:*",
75-
"website:deploy": "npm run website:inject && npm run website:build && scripts/deploy.sh",
75+
"website:deploy": "npm run website:inject && npm run website:build && cd website && hexo deploy",
7676
"website:inject": "rimraf website/source/{c,golang,php,python,ruby} && babel-node src/_util/cli.js injectweb",
7777
"website:install": "cd website && npm install",
7878
"website:start": "cd website && hexo server",

scripts/deploy.sh

-41
This file was deleted.

website/_config.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,6 @@ theme: icarus
8989
# Deployment
9090
## Docs: https://hexo.io/docs/deployment.html
9191
deploy:
92-
type:
92+
type: git
93+
repo: [email protected]:kvz/locutus.git
94+
branch: gh-pages

website/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"dependencies": {
99
"hexo": "3.1.1",
1010
"hexo-browsersync": "0.2.0",
11+
"hexo-deployer-git": "0.1.0",
1112
"hexo-front-matter-excerpt": "0.2.0",
1213
"hexo-generator-alias": "0.1.3",
1314
"hexo-generator-archive": "0.1.4",

0 commit comments

Comments
 (0)