Skip to content

Commit

Permalink
DOC: do not check out pytools to build docs
Browse files Browse the repository at this point in the history
  • Loading branch information
j-ittner committed Jan 24, 2023
1 parent 48c8966 commit 234f1d9
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,6 @@ stages:
sshKeySecureFile: 'deploy_docs_$(project_name)'
displayName: 'Install the deploy SSH key'

- checkout: pytools
- checkout: self

- script: dir $(Build.SourcesDirectory)
Expand All @@ -622,7 +621,7 @@ stages:
script: |
set -eux
cd $(System.DefaultWorkingDirectory)/$(project_root)
cd $(System.DefaultWorkingDirectory)
echo "Checking out github-pages"
git checkout --track origin/github-pages
Expand All @@ -644,14 +643,14 @@ stages:
set -eux
eval "$(conda shell.bash hook)"
cd $(System.DefaultWorkingDirectory)/$(project_root)
cd $(System.DefaultWorkingDirectory)
echo "Checking out $(branchName)"
git checkout $(branchName)
conda env create
conda activate $(project_name)-develop
export PYTHONPATH=$(System.DefaultWorkingDirectory)/$(project_root)/src/
export PYTHONPATH=$(System.DefaultWorkingDirectory)/src/
python sphinx/make.py html
Expand All @@ -667,14 +666,14 @@ stages:
# install the tree utility
sudo apt-get install tree
cd $(System.DefaultWorkingDirectory)/$(project_root)
cd $(System.DefaultWorkingDirectory)
echo "Restoring previous documentation to the docs directory"
mkdir -p docs
mv $(Build.ArtifactStagingDirectory)/docs-version.bak docs/docs-version
ls docs/docs-version
mkdir -p $(System.DefaultWorkingDirectory)/$(project_root)/sphinx/build/
mkdir -p $(System.DefaultWorkingDirectory)/sphinx/build/
conda activate $(project_name)-develop
python sphinx/make.py prepare_docs_deployment
Expand Down Expand Up @@ -708,7 +707,7 @@ stages:
targetType: 'inline'
script: |
set -eux
cd $(System.DefaultWorkingDirectory)/$(project_root)
cd $(System.DefaultWorkingDirectory)
echo "Adjusting git credentials"
git config --global user.name "Azure Pipelines"
Expand Down

0 comments on commit 234f1d9

Please sign in to comment.