Skip to content

Commit

Permalink
Push dev docs to seperate site
Browse files Browse the repository at this point in the history
  • Loading branch information
banesullivan committed Feb 13, 2020
1 parent 4e8492e commit 6aab1a8
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
variables:
ALLOW_PLOTTING: true


# DESCRIPTION: Quickly check the spelling and documentation style
jobs:
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
# echo "##vso[task.setvariable variable=PYVISTA_VERSION]$PYVISTA_VERSION"
# echo $EXAMPLES_PATH
# displayName: 'Store location of pyvista downloads cache and version'

# - task: Cache@2
# inputs:
# key: 'PYVISTA_EXAMPLES_CACHE | "$(PYVISTA_VERSION)"'
Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:
echo "##vso[task.setvariable variable=PYVISTA_VERSION]$PYVISTA_VERSION"
echo $EXAMPLES_PATH
displayName: 'Store location of pyvista downloads cache and version'
- task: Cache@2
inputs:
key: 'PYVISTA_EXAMPLES_CACHE | "$(PYVISTA_VERSION)"'
Expand Down Expand Up @@ -231,7 +231,7 @@ jobs:
env:
GH_TOKEN: $(gh.token)
# Push example notebooks to pyvista-examples
# Push example notebooks to pyvista-examples develop branch
- script: |
pip install cookiecutter
cookiecutter -f --no-input --config-file ./docs/pyvista-binder-config.yml -o .. https://github.com/pyvista/cookiecutter-pyvista-binder.git;
Expand Down Expand Up @@ -265,28 +265,28 @@ jobs:
echo "docs.pyvista.org" >> CNAME
git add .
git commit -am "Azure CI commit ref $(Build.SourceVersion)"
git push
git push
displayName: Upload Documentation to pyvista-docs
env:
GH_TOKEN: $(gh.token)
condition: and(succeeded(), contains(variables['Build.SourceBranch'], 'refs/tags/'))
# upload documentation to pyvista-docs develop when merging with master
- script: |
mkdir pyvista-docs
cd pyvista-docs
mkdir pyvista-docs-dev
cd pyvista-docs-dev
git init
git checkout -b develop
git checkout -b gh-pages
cp -r $BUILD_SOURCESDIRECTORY/docs/_build/html/* .
cp $BUILD_SOURCESDIRECTORY/docs/README.md .
touch .nojekyll
echo "docs.pyvista.org" >> CNAME
echo "dev.pyvista.org" >> CNAME
git add .
REMOTE="https://${GH_TOKEN}@github.com/pyvista/pyvista-docs"
REMOTE="https://${GH_TOKEN}@github.com/pyvista/pyvista-docs-dev"
git remote add origin ${REMOTE}
git commit -am "Azure CI commit ref $(Build.SourceVersion)"
git push -uf origin develop
displayName: Upload Documentation to pyvista-docs develop
git push -uf origin gh-pages
displayName: Upload Documentation to pyvista-docs-dev
env:
GH_TOKEN: $(gh.token)
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
Expand Down Expand Up @@ -330,4 +330,4 @@ jobs:
# isDraft: true
# addChangeLog: true
# displayName: Create GitHub Release
# condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')
# condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')

0 comments on commit 6aab1a8

Please sign in to comment.