Skip to content

Commit

Permalink
Clean up dist folder before copying new files
Browse files Browse the repository at this point in the history
  • Loading branch information
Danila Shutov committed Feb 2, 2018
1 parent 4ec60cf commit 3200ab0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/publish-built-version
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ if [[ -n $TRAVIS_TAG && $TRAVIS_JOB_NUMBER =~ ".3" ]]; then

git clone https://${GITHUB_TOKEN}@github.com/epoberezkin/ajv-dist.git ../ajv-dist

mkdir -p ../ajv-dist/dist
cp ./dist/* ../ajv-dist/dist
cp ./bower.json ../ajv-dist
rm -rf ../ajv-dist/dist
mkdir ../ajv-dist/dist
cp ./dist/ajv.* ../ajv-dist/dist
cat bower.json | sed 's/"name": "ajv"/"name": "ajv-dist"/' > ../ajv-dist/bower.json
cd ../ajv-dist

if [[ `git status --porcelain` ]]; then
Expand Down

0 comments on commit 3200ab0

Please sign in to comment.