2019-12-02 02:35:58 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
2019-12-22 23:17:27 +01:00
|
|
|
set -x # No fail, we need to go back to the original branch at the end
|
2020-02-02 14:43:39 +01:00
|
|
|
. .travis/environment.sh
|
2019-12-22 22:22:33 +01:00
|
|
|
|
2020-03-08 16:30:47 +01:00
|
|
|
mkdir build && cd build && cmake -DSFIZZ_JACK=OFF -DSFIZZ_SHARED=OFF -DSFIZZ_LV2=OFF .. && cd ..
|
2019-12-02 02:35:58 +01:00
|
|
|
doxygen Doxyfile
|
2020-04-06 14:19:55 +02:00
|
|
|
./doxygen/scripts/generate_api_index.sh
|
2019-12-02 02:35:58 +01:00
|
|
|
git fetch --depth=1 https://github.com/${TRAVIS_REPO_SLUG}.git refs/heads/gh-pages:refs/remotes/origin/gh-pages
|
|
|
|
|
git checkout origin/gh-pages
|
|
|
|
|
git checkout -b gh-pages
|
2020-02-18 01:47:13 +01:00
|
|
|
mv _api api/${TRAVIS_TAG}
|
2020-04-06 14:19:55 +02:00
|
|
|
mv api_index.md api/index.md
|
|
|
|
|
git add api && git commit -m "Release ${TRAVIS_TAG} (Travis build: ${TRAVIS_BUILD_NUMBER})"
|
2019-12-02 02:35:58 +01:00
|
|
|
git remote add origin-pages https://${GITHUB_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git > /dev/null 2>&1
|
|
|
|
|
git push --quiet --set-upstream origin-pages gh-pages
|
2019-12-22 23:17:27 +01:00
|
|
|
git checkout ${TRAVIS_BRANCH}
|