Skip to content

Commit d4d5d5e

Browse files
authoredApr 18, 2019
Manually set GH_TOKEN env var (#937)
1 parent 73884fe commit d4d5d5e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
 

‎.azure-scripts/push-javadoc-to-gh-pages.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ echo -e "Publishing javadoc...\n"
1515
cp -R build/docs/javadoc $HOME/javadoc-latest
1616

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

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

2929
echo -e "Published Javadoc to gh-pages.\n"

‎azure-pipelines.yml

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
contents: 'ui/build/installer/GRIP-*.deb'
3939
targetFolder: $(Build.ArtifactStagingDirectory)
4040
- script: |
41+
export GH_TOKEN=$(GH_TOKEN)
4142
.azure-scripts/push-javadoc-to-gh-pages.sh
4243
displayName: 'Publish Javadocs'
4344
condition: |

0 commit comments

Comments
 (0)