A fake extension to test auto deploying to Chrome Web Store with grunt via Travis CI.
- Go to the Google Developers Console to create the CLIENT_ID and CLIENT_SECRET you'll need to deploy. Start with the "Before You Begin" section here https://developer.chrome.com/webstore/using_webstore_api and make sure you have a
CLIENT_ID
,CLIENT_SECRET
, andREFRESH_TOKEN
following those instructions. - Create a new Google Extension via the Dashboard as usual. You need to start the app this way.
- Copy the Gruntfile in this repo into your repo and copy the App ID for the extension from the Chrome Web Store (it's the last part of the URL for the published extension).
- Update/create the repo package.json file to include the dependencies for
grunt
andgrunt-webstore-upload
. - Setup Travis CI with the
before_install
andafter_success
commands in this repo. - In the ./chrome-deploy.sh file, make sure that the command to zip the extension has the correct directory name for your extension in the second argument.
- Install the Travis CI ruby gem and encrypt the
CLIENT_ID
,CLIENT_SECRET
, andREFRESH_TOKEN
, or just add them as env vars in the Travis CI website. - Push your repo.
This repo will deploy on a push on the master
branch or if there is a tag in the release, but not on pull requests. To change these rules, change the tests in the if
block in chrome-deploy.sh.
MIT (c) 2016 Paul Molluzzo