From d3898f0c2c759107876ba2164112aaeb17c1c60f Mon Sep 17 00:00:00 2001 From: BUTEAU Daniel Date: Sat, 24 Aug 2019 16:56:33 +0200 Subject: [PATCH] try another travis --- .travis.yml | 11 ++++++++++- package.json | 4 ++-- 2 files changed, 12 insertions(+), 3 deletions(-) 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