Skip to content

Commit

Permalink
Manually set GH_TOKEN env var (#937)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamCarlberg authored Apr 18, 2019
1 parent 73884fe commit d4d5d5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .azure-scripts/push-javadoc-to-gh-pages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ echo -e "Publishing javadoc...\n"
cp -R build/docs/javadoc $HOME/javadoc-latest

cd $HOME
git config user.email "azuredevops@microsoft.com"
git config user.name "azure-pipelines"
git config --global user.email "azuredevops@microsoft.com"
git config --global user.name "azure-pipelines"
git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/WPIRoboticsProjects/grip gh-pages #> /dev/null

cd gh-pages
git rm -rf ./javadoc
cp -Rf $HOME/javadoc-latest ./javadoc
git add -f .
git commit -m "Lastest javadoc on successful Azure build ${BUILD_BUILD_NUMBER} auto-pushed to gh-pages"
git commit -m "Lastest javadoc on successful Azure build ${BUILD_BUILDNUMBER} auto-pushed to gh-pages"
git push -fq origin gh-pages #> /dev/null

echo -e "Published Javadoc to gh-pages.\n"
1 change: 1 addition & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
contents: 'ui/build/installer/GRIP-*.deb'
targetFolder: $(Build.ArtifactStagingDirectory)
- script: |
export GH_TOKEN=$(GH_TOKEN)
.azure-scripts/push-javadoc-to-gh-pages.sh
displayName: 'Publish Javadocs'
condition: |
Expand Down

0 comments on commit d4d5d5e

Please sign in to comment.