diff --git a/.travis.yml b/.travis.yml index b3bee1d..049c3d6 100755 --- a/.travis.yml +++ b/.travis.yml @@ -25,7 +25,11 @@ jobs: - stage: deploy name: create release file on github provider: releases - before_deploy: + before_script: + - APIKEY="$WEB_EXT_API_KEY" + - APISECRET="$WEB_EXT_API_SECRET" + - unset WEB_EXT_API_KEY + - unset WEB_EXT_API_SECRET - npm run release node_js: - '10' @@ -44,6 +48,11 @@ jobs: node_js: - '10' WEB_EXT_CHANNEL: listed + before_script: + - APIKEY="$WEB_EXT_API_KEY" + - APISECRET="$WEB_EXT_API_SECRET" + - unset WEB_EXT_API_KEY + - unset WEB_EXT_API_SECRET provider: script skip_cleanup: true script: "npm run release:amo" diff --git a/package.json b/package.json index d740c98..b1d5a69 100755 --- a/package.json +++ b/package.json @@ -21,8 +21,8 @@ "scripts": { "test": "web-ext lint", "build": "web-ext build", - "sign": "web-ext sign", + "sign": "web-ext sign --api-key=$APIKEY --api-secret=$APISECRET", "release:amo": "npm run build && web-ext run", - "release": "npm run build && npm run sign" + "release": "npm run sign" } } \ No newline at end of file