Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
eq19 committed Jul 11, 2023
1 parent f174f96 commit e79c0af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _plugins/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jekyll_build() {

echo -e "\n$hr\nWORKSPACE\n$hr"
cd /maps && mv _includes/workdir/* . && NR=$3
[[ $1 == "eq19/eq19.github.io" ]] && NR=1 || NR=$(( NR+2 ))
[[ $1 == "eq19.github.io" ]] && NR=1 || NR=$(( NR+2 ))
if [[ $1 == *"github.io"* ]]; then OWNER=$2; mv _assets assets; fi
wget -O README.md $(cat /tmp/gist_files | awk "NR==${NR}") &>/dev/null && ls -al .

Expand All @@ -53,7 +53,7 @@ jekyll_build() {
REMOTE_REPO="https://${GITHUB_ACTOR}:${INPUT_TOKEN}@github.com/${OWNER}/$1.git"
JEKYLL_GITHUB_TOKEN=${INPUT_TOKEN} bundle exec jekyll build --profile -t -p _plugins/gems

cd _site && touch .nojekyll && if [[ $1 == "eq19/eq19.github.io" ]]; then echo "www.eq19.com" > CNAME; fi
cd _site && touch .nojekyll && if [[ $1 == "eq19.github.io" ]]; then echo "www.eq19.com" > CNAME; fi
git init --initial-branch=master > /dev/null && git remote add origin ${REMOTE_REPO} && git add .
git commit -m "jekyll build" > /dev/null && git push --force ${REMOTE_REPO} master:gh-pages

Expand Down

0 comments on commit e79c0af

Please sign in to comment.