More appveyor stuff
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded
This commit is contained in:
parent
17b100bb07
commit
ed73607e7b
1 changed files with 1 additions and 13 deletions
14
appveyor.yml
14
appveyor.yml
|
@ -32,19 +32,6 @@ test_script:
|
||||||
npm test
|
npm test
|
||||||
npm run test:integration
|
npm run test:integration
|
||||||
|
|
||||||
after_test:
|
|
||||||
- sh: echo after_test
|
|
||||||
|
|
||||||
deploy_script:
|
|
||||||
- sh: |
|
|
||||||
CURR_VER=$(npm view package.json version)
|
|
||||||
if curl -s -X GET -H "token: $deploytoken" https://git.nfp.is/api/v1/repos/$APPVEYOR_REPO_NAME/releases | grep -o "\"name\"\:\"v${CURR_VER}\"" > /dev/null; then
|
|
||||||
echo "Release already exists, nothing to do.";
|
|
||||||
else
|
|
||||||
./test/7zas a -mx9 "${CURR_VER}_sc-core.7z" package.json index.mjs cli.mjs core bin
|
|
||||||
npm publish
|
|
||||||
fi
|
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: ./*_sc-core.7z
|
- path: ./*_sc-core.7z
|
||||||
|
|
||||||
|
@ -56,6 +43,7 @@ on_success:
|
||||||
echo "Release already exists, nothing to do.";
|
echo "Release already exists, nothing to do.";
|
||||||
else
|
else
|
||||||
./test/7zas a -mx9 "${CURR_VER}_sc-core.7z" package.json index.mjs cli.mjs core bin
|
./test/7zas a -mx9 "${CURR_VER}_sc-core.7z" package.json index.mjs cli.mjs core bin
|
||||||
|
echo '//registry.npmjs.org/:_authToken=${npmtoken}' > ~/.npmrc
|
||||||
npm publish
|
npm publish
|
||||||
fi
|
fi
|
||||||
- sh: |
|
- sh: |
|
||||||
|
|
Loading…
Reference in a new issue