diff --git a/.travis.yml b/.travis.yml index 049c3d6..454b5c7 100755 --- a/.travis.yml +++ b/.travis.yml @@ -25,16 +25,10 @@ jobs: - stage: deploy name: create release file on github provider: releases + WEB_EXT_CHANNEL: unlisted 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' + - web-ext sign api_key: $GH_TOKEN - WEB_EXT_CHANNEL: unlisted skip_cleanup: true overwrite: true file_glob: true @@ -45,16 +39,9 @@ jobs: - stage: deploy name: release on AMO - 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" + script: "web-ext sign" on.tags: true diff --git a/package.json b/package.json index b1d5a69..3d12480 100755 --- a/package.json +++ b/package.json @@ -21,8 +21,6 @@ "scripts": { "test": "web-ext lint", "build": "web-ext build", - "sign": "web-ext sign --api-key=$APIKEY --api-secret=$APISECRET", - "release:amo": "npm run build && web-ext run", - "release": "npm run sign" + "release": "web-ext sign --api-key=$APIKEY --api-secret=$APISECRET" } } \ No newline at end of file