Skip to content

Commit 627c0f4

Browse files
authored
uncomment workflow to publish doc (#19821)
1 parent 31be9b9 commit 627c0f4

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

.travis.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -201,15 +201,17 @@ after_success:
201201
echo "Pushed to $DOCKER_CODEGEN_CLI_IMAGE_NAME";
202202
fi;
203203
fi;
204-
# publish latest website, variables below are secure environment variables which are unavailable to PRs from forks.
205-
#- if [ "$TRAVIS_BRANCH" = "master" ] && [ -z $TRAVIS_TAG ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
206-
# cd website;
207-
# git config --global user.name "${GH_NAME}";
208-
# git config --global user.email "${GH_EMAIL}";
209-
# echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc;
210-
# yarn install;
211-
# GIT_USER="${GH_NAME}" yarn run publish-gh-pages;
212-
# fi;
204+
publish latest website, variables below are secure environment variables which are unavailable to PRs from forks.
205+
- if [ "$TRAVIS_BRANCH" = "master" ] && [ -z $TRAVIS_TAG ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
206+
sed -i "s/Vector{UInt8}/Vector\{UInt8\}/g" docs/generators/julia-client.md
207+
sed -i "s/Vector{UInt8}/Vector\{UInt8\}/g" docs/generators/julia-server.md
208+
cd website;
209+
git config --global user.name "${GH_NAME}";
210+
git config --global user.email "${GH_EMAIL}";
211+
echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc;
212+
yarn install;
213+
GIT_USER="${GH_NAME}" yarn run publish-gh-pages;
214+
fi;
213215

214216
env:
215217
- DOCKER_GENERATOR_IMAGE_NAME=openapitools/openapi-generator-online DOCKER_CODEGEN_CLI_IMAGE_NAME=openapitools/openapi-generator-cli NODE_ENV=test CC=gcc-5 CXX=g++-5

0 commit comments

Comments
 (0)