workflow
This commit is contained in:
parent
bc07d89940
commit
2d5acc964f
2 changed files with 4 additions and 3 deletions
|
@ -36,11 +36,12 @@ jobs:
|
||||||
echo "Script"
|
echo "Script"
|
||||||
./web.sh "$file"
|
./web.sh "$file"
|
||||||
done
|
done
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
git add .
|
git add .
|
||||||
if git diff-index --quiet HEAD ; then
|
if git diff-index --quiet HEAD ; then
|
||||||
echo Nothing changed, not pushing
|
echo Nothing changed, not pushing
|
||||||
else
|
else
|
||||||
git commit -m 'publish' -a
|
export DEBIAN_FRONTEND=noninteractive ; apt-get -qq update && apt-get install -y --quiet sshpass rsync
|
||||||
git push
|
SSHPASS="${{ secrets.RVBA }}" rsync --rsh='sshpass -e ssh -oStrictHostKeyChecking=no' -av dist/ root@forgeons.org:/var/www/forgeons.org
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Forgeons !
|
# Forgeons !
|
||||||
|
|
||||||
This is not a test !!!!
|
This is not a test !
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue