1
0
mirror of https://github.com/actix/actix-website synced 2024-11-30 19:14:36 +01:00
actix-website/.deploy.sh

9 lines
420 B
Bash
Raw Normal View History

2018-05-22 23:15:08 +02:00
#!/bin/bash
if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_PULL_REQUEST" = "false" && "$TRAVIS_BRANCH" == "master" ]]; then
cp CNAME public
2018-06-23 01:43:29 +02:00
mv public/en/* public && rm -R public/en
2018-05-22 23:15:08 +02:00
git clone https://github.com/davisp/ghp-import.git &&
2018-05-22 23:22:33 +02:00
./ghp-import/ghp_import.py -n -p -f -m "Documentation upload" -b master -r https://"$GH_TOKEN"@github.com/actix/actix.github.io.git public &&
2018-05-22 23:15:08 +02:00
echo "Uploaded documentation"
fi