Skip to content

deploy wechat custom menu automatically with github and travis-ci

License

Notifications You must be signed in to change notification settings

GitDoggo/wechat-menu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wechat-menu

update wechat custom menu automatically with github and travis-ci

build status

Usage

Edit data/menu.json and push.

Install

  1. fork this project
  2. switch on travis-ci in your accounts page for your project
  3. replace the secure data in .travis.yml with your encrypted appID and appSecret. See steps below for details
  4. create your own menu.json
  5. push the changes to github

Encrypt app keys

$ gem install travis
$ travis encrypt APP_ID=your-app-id --add
$ travis encrypt APP_SECRET=your-app-secret --add

Development

Run Locally

npm run-script deploy

Skip Building

just include [ci skip] in your commit message

To Do

  1. detect failure status
  2. print debug information in travis log (muted stdout for now to protect the secret)
  3. disable building for pull request

Nice To Have

  1. local preview of the menu (low priorty as wechat refreshes the menu in just a few minutes)

About

deploy wechat custom menu automatically with github and travis-ci

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%