Skip to content

Commit

Permalink
Add auto publisher (OctoLinker#119)
Browse files Browse the repository at this point in the history
* The release page already contains a zip of the repo

* Add auto publish to Chrome Web Store
  • Loading branch information
stefanbuck authored Jul 14, 2016
1 parent c97d033 commit 2193d36
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
22 changes: 13 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ node_js:
- 4
- 6
after_success:
- npm run chrome-pack
- npm run firefox-pack
- npm run package-all
deploy:
provider: releases
api_key: "$GH_DEPLOY"
file_glob: true
file: "out/*.zip"
skip_cleanup: true
on:
tags: true
- provider: releases
api_key: "$GH_DEPLOY"
file_glob: true
file: "out/*.zip"
skip_cleanup: true
on:
tags: true
- provider: script
script: npm run release
on:
branch: master
tags: true
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"pretest": "npm run lint",
"test": "karma start",
"test:watch": "karma start --no-single-run --auto-watch",
"package-all": "npm-run-all chrome-pack firefox-pack && cp out/chrome-octolinker-$npm_package_version.zip out/opera-octolinker-$npm_package_version.zip",
"release": "webstore upload --source out/chrome-octolinker-$npm_package_version.zip --auto-publish",
"chrome-manifest": "mkdir -p dist && json -e 'delete this.applications; this.permissions.shift()' < assets/manifest.json > dist/manifest.json",
"chrome-build": "npm run chrome-manifest && webpack",
"chrome-dist": "npm run chrome-build -- -p",
Expand All @@ -21,8 +23,7 @@
"firefox-dist": "npm run firefox-build -- -p",
"firefox-watch": "npm run firefox-manifest && webpack --watch",
"firefox-pack": "npm run firefox-dist && mkdir -p out && zip -rj out/firefox-octolinker-$npm_package_version.zip dist/",
"firefox-open": "npm run firefox-build && web-ext run --source-dir dist",
"pack-repo": "mkdir -p out && zip -r out/octolinker-repository-$npm_package_version.zip * --exclude dist/\\* out/\\* node_modules/\\*"
"firefox-open": "npm run firefox-build && web-ext run --source-dir dist"
},
"dependencies": {
"JSONPath": "^0.11.2",
Expand All @@ -42,6 +43,7 @@
"babel-eslint": "^4.1.3",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.9.0",
"chrome-webstore-upload-cli": "^1.0.3",
"copy-webpack-plugin": "^3.0.1",
"eslint": "^1.10.3",
"eslint-config-airbnb": "2.1.1",
Expand All @@ -56,6 +58,7 @@
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^1.7.0",
"mocha": "^2.3.4",
"npm-run-all": "^2.3.0",
"phantomjs": "^1.9.18",
"sinon": "^2.0.0-pre",
"web-ext": "^1.0.1",
Expand Down

0 comments on commit 2193d36

Please sign in to comment.