uncomment workflow to publish doc (#19821)

This commit is contained in:
William Cheng 2024-10-09 13:07:41 +08:00 committed by GitHub
parent 31be9b9207
commit 627c0f43cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -201,15 +201,17 @@ after_success:
echo "Pushed to $DOCKER_CODEGEN_CLI_IMAGE_NAME"; echo "Pushed to $DOCKER_CODEGEN_CLI_IMAGE_NAME";
fi; fi;
fi; fi;
# publish latest website, variables below are secure environment variables which are unavailable to PRs from forks. publish latest website, variables below are secure environment variables which are unavailable to PRs from forks.
#- if [ "$TRAVIS_BRANCH" = "master" ] && [ -z $TRAVIS_TAG ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then - if [ "$TRAVIS_BRANCH" = "master" ] && [ -z $TRAVIS_TAG ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
# cd website; sed -i "s/Vector{UInt8}/Vector\{UInt8\}/g" docs/generators/julia-client.md
# git config --global user.name "${GH_NAME}"; sed -i "s/Vector{UInt8}/Vector\{UInt8\}/g" docs/generators/julia-server.md
# git config --global user.email "${GH_EMAIL}"; cd website;
# echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc; git config --global user.name "${GH_NAME}";
# yarn install; git config --global user.email "${GH_EMAIL}";
# GIT_USER="${GH_NAME}" yarn run publish-gh-pages; echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc;
# fi; yarn install;
GIT_USER="${GH_NAME}" yarn run publish-gh-pages;
fi;
env: env:
- 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 - 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