update deploy-phpdoc.sh for auto docs
This commit is contained in:
parent
04f7140347
commit
c3b908939f
@ -12,11 +12,11 @@ git config user.name "Travis CI"
|
|||||||
git config user.email "travis-ci@picocms.org"
|
git config user.email "travis-ci@picocms.org"
|
||||||
|
|
||||||
#copy new files to release number
|
#copy new files to release number
|
||||||
cp -a $TRAVIS_BUILD_DIR/build/docs/pico-$TRAVIS_TAG $TRAVIS_BUILD_DIR/build/Pico/phpDoc/pico-$TRAVIS_TAG
|
cp -a $TRAVIS_BUILD_DIR/build/docs/$TRAVIS_TAG $TRAVIS_BUILD_DIR/build/Pico/phpDoc/$TRAVIS_TAG
|
||||||
#move old files
|
#move old master files to old-stable
|
||||||
mv -f $TRAVIS_BUILD_DIR/build/Pico/phpDoc/master $TRAVIS_BUILD_DIR/build/Pico/phpDoc/old-stable
|
mv -f $TRAVIS_BUILD_DIR/build/Pico/phpDoc/master $TRAVIS_BUILD_DIR/build/Pico/phpDoc/old-stable
|
||||||
#copy new files to master
|
#copy new files to master
|
||||||
cp -a $TRAVIS_BUILD_DIR/build/docs/pico-$TRAVIS_TAG $TRAVIS_BUILD_DIR/build/Pico/phpDoc/master
|
cp -a $TRAVIS_BUILD_DIR/build/docs/$TRAVIS_TAG $TRAVIS_BUILD_DIR/build/Pico/phpDoc/master
|
||||||
|
|
||||||
# Add the files to our commit
|
# Add the files to our commit
|
||||||
git add $TRAVIS_BUILD_DIR/build/Pico/phpDoc/*
|
git add $TRAVIS_BUILD_DIR/build/Pico/phpDoc/*
|
||||||
@ -24,7 +24,6 @@ git add $TRAVIS_BUILD_DIR/build/Pico/phpDoc/*
|
|||||||
# Commit the files with our commit message
|
# Commit the files with our commit message
|
||||||
git commit -m "Update Documentation for Pico $TRAVIS_TAG"
|
git commit -m "Update Documentation for Pico $TRAVIS_TAG"
|
||||||
|
|
||||||
# Force push from the current repo's master branch to the remote
|
# Force push from the current repo's gh-pages branch to the remote repo's gh-pages branch.
|
||||||
# repo's gh-pages branch.We redirect any output to
|
# We redirect output to /dev/null to hide any sensitive data that might otherwise be exposed.
|
||||||
# /dev/null to hide any sensitive credential data that might otherwise be exposed.
|
git push --force --quiet "https://${GITHUB_OAUTH_TOKEN}@github.com/picocms/Pico.git" master:gh-pages > /dev/null 2>&1
|
||||||
git push --force --quiet "https://${GITHUB_OAUTH_TOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user