Skip to content

Commit

Permalink
simplify publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
scheibo committed Apr 16, 2020
1 parent 18910c7 commit 7f2837d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions publish
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,19 @@

# Setup

TMP=$(mktemp -qdt "$(basename $0).XXXXXX" 2>/dev/null || mktemp -q -d)
trap "rm -rf $TMP" 0

rev=$(git rev-parse --short HEAD | tr -d "\n")

# Build

node build
cp -a dist/ $TMP

# Checkout: master -> gh-pages

git checkout gh-pages

# Publish

cp -a $TMP/* .
cp -a dist/* .

git add -A .
git commit -m "Publish: '${rev}'"
Expand Down

0 comments on commit 7f2837d

Please sign in to comment.