File tree 5 files changed +43
-14
lines changed
5 files changed +43
-14
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
name : CI
2
2
on :
3
3
push :
4
- branches : [main]
4
+ branches : [ main ]
5
5
pull_request :
6
+ release :
7
+ types : [ created ]
6
8
7
9
jobs :
8
- build :
10
+
11
+ test :
9
12
strategy :
10
13
fail-fast : false
11
14
matrix :
12
15
include :
13
16
- sbt_version : 1.3.13
14
17
- sbt_version : 1.4.0
15
18
- sbt_version : 1.8.3
16
-
17
19
runs-on : ubuntu-latest
18
20
steps :
19
21
- uses : actions/checkout@v3
23
25
java-version : 17
24
26
- name : Test
25
27
run : sbt -Dfile.encoding=UTF8 -J-XX:ReservedCodeCacheSize=256M "^^${{ matrix.sbt_version }}" "scripted basic/*"
28
+
29
+ release :
30
+ needs : [ test ]
31
+ if : github.ref == 'refs/heads/main' || github.ref_type == 'tag'
32
+ runs-on : ubuntu-latest
33
+ steps :
34
+ - uses : actions/checkout@v3
35
+ with :
36
+ fetch-depth : 0
37
+ - uses : actions/setup-java@v3
38
+ with :
39
+ distribution : adopt
40
+ java-version : 17
41
+ - name : Release
42
+ run : sbt ci-release
43
+ env :
44
+ PGP_PASSPHRASE : ${{ secrets.PGP_PASSPHRASE }}
45
+ PGP_SECRET : ${{ secrets.PGP_SECRET }}
46
+ SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
47
+ SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
48
+
49
+ update-version-number :
50
+ needs : [ release ]
51
+ if : github.ref_type == 'tag'
52
+ runs-on : ubuntu-latest
53
+ steps :
54
+ - uses : actions/checkout@v3
55
+ with :
56
+ ref : ' main'
57
+ - name : Update version number in example project
58
+ run : |
59
+ echo 'addSbtPlugin("com.github.cb372" % "sbt-explicit-dependencies" % "${{ github.ref_name }}")' > example/project/plugins.sbt
60
+ - uses : EndBug/add-and-commit@v9
61
+ with :
62
+ message : ' [skip ci] Update plugin version in example repo'
Original file line number Diff line number Diff line change 1
- import ReleaseTransformations ._
2
-
3
1
enablePlugins(SbtPlugin )
4
2
5
3
val latestSbt_1_3_x_version = " 1.3.13"
@@ -18,7 +16,7 @@ description := "An sbt plugin to check that your project does not directly depen
18
16
homepage := Some (url(" https://github.com/cb372/sbt-explicit-dependencies" ))
19
17
licenses += (" Apache-2.0" , url(" https://www.apache.org/licenses/LICENSE-2.0.html" ))
20
18
21
- releaseCrossBuild := false
19
+ /*
22
20
releaseProcess := Seq[ReleaseStep](
23
21
checkSnapshotDependencies,
24
22
inquireVersions,
@@ -32,6 +30,7 @@ releaseProcess := Seq[ReleaseStep](
32
30
commitNextVersion,
33
31
pushChanges
34
32
)
33
+ */
35
34
36
35
lazy val updateVersionInExampleProject = taskKey[Unit ](" update the version of the plugin used in the example project" )
37
36
updateVersionInExampleProject := {
Original file line number Diff line number Diff line change 1
- addSbtPlugin(" org.foundweekends" % " sbt-bintray" % " 0.5.6" )
2
- addSbtPlugin(" com.github.gseitz" % " sbt-release" % " 1.0.13" )
1
+ addSbtPlugin(" com.github.sbt" % " sbt-ci-release" % " 1.5.12" )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments