mirror of
https://github.com/appium/appium.git
synced 2026-10-25 02:00:57 +08:00
* chore: use ubuntu to build docs by docker * remove install hub since the container already has it * add git config * extract the message * fix paths 'Update ...' with -a does not make sense * added 'add' for new files
31 lines
1.1 KiB
YAML
31 lines
1.1 KiB
YAML
# parameters: # No params yet, but may add later
|
|
jobs:
|
|
- job: update_appium_io
|
|
pool:
|
|
vmImage: 'Ubuntu-18.04'
|
|
variables:
|
|
CC: gcc
|
|
CXX: g++
|
|
steps:
|
|
- task: NodeTool@0
|
|
inputs:
|
|
versionSpec: '10.x'
|
|
- script: |
|
|
pip install mkdocs==0.16.3
|
|
git config --global user.email "maintainers@appium.io"
|
|
git config --global user.name "Appium Triager"
|
|
git clone https://triager:$GITHUB_TOKEN@github.com/appium/appium.io.git --branch=gh-pages
|
|
pushd appium.io
|
|
git remote add triager https://triager:$GITHUB_TOKEN@github.com/appium/appium.io
|
|
git checkout -b docs-$BUILD_SOURCEVERSION
|
|
bundle install
|
|
npm install
|
|
npm run build:docs
|
|
git add docs
|
|
git commit -a -n -m "docs: Update documentation for latest version"
|
|
git push triager docs-$BUILD_SOURCEVERSION
|
|
hub pull-request -b "appium:gh-pages" -h "appium:docs-$BUILD_SOURCEVERSION" -m "docs: Update documentation for latest version"
|
|
popd
|
|
displayName: Make branch with Updated Docs and make PR
|
|
env:
|
|
GITHUB_TOKEN: $(GITHUB_TOKEN) |