Google chrome extension 如何持续向Chrome应用商店提供应用程序更新?特拉维斯·西?

Google chrome extension 如何持续向Chrome应用商店提供应用程序更新?特拉维斯·西?,google-chrome-extension,google-chrome-app,travis-ci,continuous-delivery,Google Chrome Extension,Google Chrome App,Travis Ci,Continuous Delivery,我有一个chrome应用程序,我想自动部署到chrome应用程序商店,作为我的持续交付管道的一部分 有没有办法让Travis CI做到这一点 Travis是否提供了将压缩工件上传到chrome商店的方法 是否可以为chrome应用商店使用cli构建此类功能?您可以使用模块和 示例Gruntfile.js: var archiveName = "buildExt.zip"; module.exports = function(grunt) { grunt.initConfig({

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

有没有办法让Travis CI做到这一点

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

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

您可以使用模块和

示例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']);
};

这真的有效吗?你不需要一个刷新令牌吗?在一个无头travis CI上,它是如何获得刷新令牌的?下面Alex给出的答案真的有效吗?请参阅我关于获取刷新令牌的评论