Update action.yml
This commit is contained in:
parent
84bc8a890c
commit
d7e5b21e64
|
@ -61,13 +61,13 @@ runs:
|
||||||
|
|
||||||
# If site is not there yet, clone it
|
# If site is not there yet, clone it
|
||||||
[ -d "${SOURCE_DIR}/${SITE_DIRNAME}" ] ||
|
[ -d "${SOURCE_DIR}/${SITE_DIRNAME}" ] ||
|
||||||
git clone https://git.alice.ufsj.edu.br/$REPO_NAME
|
sudo -u www-data git clone https://git.alice.ufsj.edu.br/$REPO_NAME
|
||||||
|
|
||||||
# Update
|
# Update
|
||||||
cd "${SOURCE_DIR}/${SITE_DIRNAME}"
|
cd "${SOURCE_DIR}/${SITE_DIRNAME}"
|
||||||
git pull
|
sudo -u www-data git pull
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
[ $SKIP_BUILD != false ] && exit 0
|
[ $SKIP_BUILD != false ] && exit 0
|
||||||
bundle install
|
sudo -u www-data bundle install
|
||||||
bundle exec jekyll build $JEKYLL_ARGS --destination=$DEST_DIR/$OUTPUT_DIRNAME
|
sudo -u www-data bundle exec jekyll build $JEKYLL_ARGS --destination=$DEST_DIR/$OUTPUT_DIRNAME
|
||||||
|
|
Loading…
Reference in New Issue