File tree Expand file tree Collapse file tree 4 files changed +30
-1
lines changed Expand file tree Collapse file tree 4 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 30
30
31
31
# OSX
32
32
.DS_Store
33
+
34
+ # PGP keys
35
+ pubring.gpg
36
+ secring.gpg
Original file line number Diff line number Diff line change 6
6
script :
7
7
- git clone https://github.com/scala-exercises/site.git site
8
8
- pushd site; sbt 'definitions/publishLocal' 'runtime/publishLocal' 'compiler/publishLocal' 'sbt-exercise/publishLocal' ; popd
9
- - sbt test
9
+ - sbt test
10
+ after_success :
11
+ - bash deploy.sh
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ function decipherKeys {
4
+ echo $KEYS_PASSPHRASE | gpg --passphrase-fd 0 keys.tar.gpg
5
+ tar xfv keys.tar
6
+ }
7
+
8
+ function publish {
9
+ sbt compile publishSigned
10
+ }
11
+
12
+ function release {
13
+ decipherKeys
14
+ publish
15
+ }
16
+
17
+ if [[ $TRAVIS_BRANCH == ' master' ]]; then
18
+ echo " Master branch, releasing..."
19
+ release
20
+ else
21
+ echo " Not in master branch, skipping release"
22
+ fi
23
+
You can’t perform that action at this time.
0 commit comments