#!/bin/bash
set -ev

if [ "${TRAVIS_NODE_VERSION}" = "6" ] ; then
    artifacts upload \
        --bucket melonjs-builds \
        --s3-region us-east-1 \
        --permissions public-read \
        --target-paths artifacts/${TRAVIS_BRANCH}/${TRAVIS_BUILD_NUMBER} \
        build/melonjs.js
fi

#!/bin/bash
set -ev

if [ "${TRAVIS_NODE_VERSION}" = "8" ] ; then
    artifacts upload \
        --bucket melonjs-builds \
        --s3-region us-east-1 \
        --permissions public-read \
        --target-paths artifacts/${TRAVIS_BRANCH}/${TRAVIS_BUILD_NUMBER} \
        build/melonjs.js
fi

Fix artifact uploads on travis
Fix artifact uploads on travis

- The nodeJS version was updated in `.travis.yml`, but not updated here