Skip to content

Commit

Permalink
Remove dist directory and move its content to github releases
Browse files Browse the repository at this point in the history
  • Loading branch information
DoumanAsh committed Apr 29, 2017
1 parent 2f68780 commit 95a7c96
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 1,039 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ public/
coverage/
.nyc_output/
html/
dist/
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,12 @@ script:
after_success:
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then sh ./ci/upload_arts.sh; fi

deploy:
provider: releases
api_key: $GIT_TOKEN
file_glob: true
file: ~/dist/jiken*
skip_cleanup: true
overwrite: true
on:
tags: true
22 changes: 9 additions & 13 deletions ci/upload_arts.sh
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
#!/bin/bash

## Save dist/
pwd
ls
cp -rf dist/ ~/

## Upload coverage
sh "$(dirname "$0")/coverage.sh"


## Configure Travis
COMMIT_AUTHOR_EMAIL=`git --no-pager log -1 --pretty=format:"%ae" HEAD`

git config --global user.name "Travis CI"
git config --global user.email "$COMMIT_AUTHOR_EMAIL"
echo "https://${GIT_TOKEN}:x-oauth-basic@github.com\n" > ~/.git-credentials

## Upload build artifacts
REPO=`git config remote.origin.url`
SHA=`git log -1 --format="%s(%h %cd)" --date=short`

git status

git checkout master
git config remote.origin.url "https://${GIT_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git"
git add --all .
git commit -m "Upload Artifacts [ci skip]" -m "Commit: ${SHA}"
git push origin HEAD

## Upload build artifacts
## Upload HTML docs
rm -rf html/
git clone $REPO html/

cd html/
Expand Down
312 changes: 0 additions & 312 deletions dist/jiken.cjs.js

This file was deleted.

Loading

0 comments on commit 95a7c96

Please sign in to comment.