forked from LiveCarta/PayPal-PHP-SDK
PHP Docs on gh-pages
This commit is contained in:
20
generate-api.sh
Normal file
20
generate-api.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
# Get ApiGen.phar
|
||||
wget http://www.apigen.org/apigen.phar
|
||||
|
||||
# Generate Api
|
||||
php apigen.phar generate -s lib -d ../gh-pages
|
||||
cd ../gh-pages
|
||||
|
||||
# Set identity
|
||||
git config --global user.email "travis@travis-ci.org"
|
||||
git config --global user.name "Travis"
|
||||
|
||||
# Add branch
|
||||
git init
|
||||
git remote add origin https://${GH_TOKEN}@github.com/paypal/PayPal-PHP-SDK.git > /dev/null
|
||||
git checkout -B gh-pages
|
||||
|
||||
# Push generated files
|
||||
git add .
|
||||
git commit -m "API updated"
|
||||
git push origin gh-pages -fq > /dev/null
|
||||
Reference in New Issue
Block a user