Skip to content

Commit 56aa9be

Browse files
Only generate the docs on master
1 parent fbac655 commit 56aa9be

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.drone.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ pipeline:
7777
commands:
7878
- ./project/scripts/genDocs
7979
secrets: [ bot_token ]
80-
# when:
81-
# event: push
82-
# # We only generate the documentation for the master branch
83-
# branch: master
80+
when:
81+
event: push
82+
# We only generate the documentation for the master branch
83+
branch: master
8484

8585
# PUBLISHING:
8686
# Publishing expect NIGHTLYBUILD or RELEASEBUILD to be set. See dottyVersion in Build.scala

project/scripts/genDocs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ shopt -s extglob
1111
# make sure that BOT_TOKEN is set
1212
if [ -z "$BOT_TOKEN" ]; then
1313
echo "Error: BOT_TOKEN env unset, unable to push without password" 1>&2
14-
# exit 1
14+
exit 1
1515
fi
1616

1717
echo "Working directory: $PWD"
@@ -29,7 +29,6 @@ fi
2929
# save current head for commit message in gh-pages
3030
GIT_HEAD=$(git rev-parse HEAD)
3131

32-
exit 0
3332

3433
# set up remote and github credentials
3534
git remote add doc-remote "https://dotty-bot:$BOT_TOKEN@github.com/lampepfl/dotty-website.git"

0 commit comments

Comments
 (0)