replace COMMIT_HASH in every html

pull/12/head
Szekeres Bálint 7 years ago
parent 5662faa7ea
commit 88c857d9dd

@ -13,4 +13,4 @@ deploy:
on:
branch: master
provider: script
script: ssh -q -l root nginxconfig.io "sudo -u www-data -H sh -c 'cd /var/www/nginxconfig.io; git reset --hard && git pull origin master && sed -i -e \"s/COMMIT_HASH/$TRAVIS_COMMIT/\" public/index.html'"
script: ssh -q -l root nginxconfig.io "sudo -u www-data -H sh -c 'cd /var/www/nginxconfig.io; git reset --hard && git pull origin master && find . -type f -name '*.html' -exec sed -i -e \"s/COMMIT_HASH/$TRAVIS_COMMIT/\" {} \;'"

Loading…
Cancel
Save