Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pastak/chrome-extension-release-heroku
https://github.com/pastak/chrome-extension-release-heroku
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pastak/chrome-extension-release-heroku
- Owner: pastak
- License: mit
- Created: 2016-01-20T12:44:59.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-24T07:38:35.000Z (over 7 years ago)
- Last Synced: 2024-10-24T23:20:53.132Z (about 2 months ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chrome-extension-release-heroku
## How To Setup
- Deploy this app to your heroku by [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
- Set environment values
- Detail is written on [here](https://github.com/pastak/chrome-extension-release-heroku#require-environment-values)
- Accress to `YOUR_HEROKU_APP_HOST/initialize` and login with your item's owner account to authorize.
- Set your CI config that it pushes extension zip file to `POST YOUR_HEROKU_APP_HOST/release`
- sample setting is [here](https://github.com/pastak/chrome-extension-release-heroku#ci-sample-settings)## Require Environment Values
- `ITEM_ID`: Chrome WebStore item id
- `WEBSTORE_CLIENT_ID`: Chrome WebStore OAuth Client Id
- `WEBSTORE_CLIENT_SECRET`: Chrome WebStore OAuth Client Secret
- Read more about these values: https://developer.chrome.com/webstore/using_webstore_api#beforeyoubegin
- **Don't forget** add `YOUR_HEROKU_APP_HOST/callback` to Redirect URL
- `AUTH_TOKEN`: Token for authorization with receive zip## CI sample settings
- `circle.yml`
```
deployment:
production:
branch: production
commands:
- build_command # Build extension
- pack_command # Zip extension directory
- curl -XPOST -F '[email protected]' -F "token=$RELEASE_AUTH_TOKEN" YOUR_HEROKU_APP_HOST/release
```