Skip to content

Commit

Permalink
Commit index.html and _next on gh-page deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
espadrine committed Feb 25, 2018
1 parent 36a2254 commit 0ae322b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
SHELL:=/bin/bash

all: website favicon test

favicon:
Expand Down Expand Up @@ -34,7 +36,12 @@ deploy-s2:
deploy-gh-pages:
(LONG_CACHE=true BASE_URL=https://img.shields.io npm run build && \
git checkout -B gh-pages master && \
git add -f build index.html && \
cp build/index.html index.html && \
cp -r build/_next next && \
pushd next/*/page && mv {_,}error && popd && \
sed -i 's,/_next/,./next/,g' index.html $$(find next -type f) && \
sed -i 's,_error,error,g' index.html $$(find next -type f) && \
git add -f build index.html next && \
git commit -m '[DEPLOY] Build index.html' && \
git push -f origin gh-pages:gh-pages) || git checkout master
git checkout master
Expand Down

0 comments on commit 0ae322b

Please sign in to comment.