File tree Expand file tree Collapse file tree 3 files changed +31
-1
lines changed Expand file tree Collapse file tree 3 files changed +31
-1
lines changed Original file line number Diff line number Diff line change 1
1
language : scala
2
+ sudo : false
3
+
4
+ env :
5
+ global :
6
+ secure : " NhcuUIVAtUcwXRNKN3TDvhuPBtRy6kpUGRnnRlqZMsPcJe1tScaA1/WnhbNjcDrvMGyMuNImXtfWIVS3h0QD5rpnc/FsAY4P5/QOA3fwQo49rRwGThIcI6liU2+IZxgjI0C3gIoR+7gP1xuZLvQSEa2ZVglUbolUTPWu8aIG3Us="
2
7
3
8
before_install :
4
9
- export PATH="$PATH:./vendor/bundle"
@@ -12,6 +17,13 @@ install:
12
17
script :
13
18
- sbt makeMicrosite
14
19
20
+ deploy :
21
+ - provider : script
22
+ script : deploy-microsite.sh
23
+ skip_cleanup : true
24
+ on :
25
+ branch : typelevel-readme
26
+
15
27
cache :
16
28
directories :
17
29
- $HOME/.ivy2/cache
Original file line number Diff line number Diff line change @@ -21,4 +21,11 @@ micrositePalette := Map(
21
21
" gray-lighter" -> " #F6F6F6" ,
22
22
" white-color" -> " #FFFFFF" )
23
23
24
- enablePlugins(MicrositesPlugin )
24
+ enablePlugins(MicrositesPlugin )
25
+
26
+ sys.env.get(" GH_TOKEN" ) match {
27
+ case None => Seq ()
28
+ case Some (token) => Seq (
29
+ git.remoteRepo := s " https:// $token@github.com/ ${micrositeGithubOwner.value}/ ${micrositeGithubRepo.value}.git "
30
+ )
31
+ }
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+
5
+
6
+ GIT_NAME=" Typelevel Bot"
7
+
8
+ git config --global user.name " $GIT_NAME "
9
+ git config --global user.email " $GIT_EMAIL "
10
+
11
+ sbt publishMicrosite
You can’t perform that action at this time.
0 commit comments