mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-09 11:53:47 +08:00
added .travis_deploy.sh
This commit is contained in:
@@ -25,9 +25,6 @@ before_deploy:
|
|||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: script
|
provider: script
|
||||||
script:
|
script: bash .travis_deploy.sh
|
||||||
- npm run build:prod
|
|
||||||
- find public -type f -name "*.html" -exec sed -i -e "s/COMMIT_HASH/$TRAVIS_COMMIT/" {} \;
|
|
||||||
- rsync --checksum --delete --delete-after --force --ignore-errors --links --recursive --stats --verbose --exclude="/node_modules*" --exclude="/cypress/videos*" ./ www-data@nginxconfig.io:/var/www/nginxconfig.io/
|
|
||||||
on:
|
on:
|
||||||
branch: master
|
branch: master
|
||||||
|
18
.travis_deploy.sh
Executable file
18
.travis_deploy.sh
Executable file
@@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
npm run build:prod
|
||||||
|
find public -type f -name "*.html" -exec sed -i -e "s/COMMIT_HASH/$TRAVIS_COMMIT/" {} \;
|
||||||
|
rsync \
|
||||||
|
--checksum \
|
||||||
|
--delete \
|
||||||
|
--delete-after \
|
||||||
|
--force \
|
||||||
|
--ignore-errors \
|
||||||
|
--links \
|
||||||
|
--recursive \
|
||||||
|
--stats \
|
||||||
|
--verbose \
|
||||||
|
--exclude="/node_modules*" \
|
||||||
|
--exclude="/cypress/videos*" \
|
||||||
|
./ \
|
||||||
|
www-data@nginxconfig.io:/var/www/nginxconfig.io/
|
Reference in New Issue
Block a user