如何持续向 Chrome 商店提供应用程序更新?特拉维斯 CI?

How to Continuously Deliver App Updates to the Chrome Store? Travis CI?

我有一个 chrome 应用程序,我想将其自动部署到 Chrome 应用程序商店,作为我持续交付管道的一部分...

Travis CI 有办法做到这一点吗?

Travis 是否提供将压缩工件上传到 chrome 商店的方法?

是否可以使用 chrome 商店的 cli 构建此类功能?

您可以创建grunt task using grunt-webstore-upload module and run it from Travis

样本Gruntfile.js:

var archiveName = "buildExt.zip";
module.exports = function(grunt) {

    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),

        webstore_upload: {
            "accounts": {
                "default": { //account under this section will be used by default
                    publish: true, //publish item right after uploading. default false
                    client_id: "xxx",
                    client_secret: "yyy",
                    refresh_token: "zzz"
                }
            },
            "extensions": {
                "myExtensionName": {
                    //required
                    appID: "aaa",
                    publish: true,
                    //required, we can use dir name and upload most recent zip file
                    zip: "build/" + archiveName
                }
            }
        }
    }),

    grunt.loadNpmTasks('grunt-webstore-upload');

    grunt.registerTask('default', ['webstore_upload']);
};