File tree Expand file tree Collapse file tree 4 files changed +14
-8
lines changed Expand file tree Collapse file tree 4 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 2121 with :
2222 gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
2323 passphrase : ${{ secrets.GPG_PRIVATE_KEY_PASSWORD }}
24- - name : Build and publish maven artifacts
24+ - name : Check if snapshot version
25+ run : echo "IS_SNAPSHOT=$(sbt --no-colors -Dsbt.supershell=false 'show isSnapshot' | grep 'info' | tail -1 | awk '{print $2}')" >> $GITHUB_ENV
26+ - name : Build and publish release version to maven
27+ if : ${{ env.IS_SNAPSHOT == 'true' }}
28+ run : sbt "+clean; +publishSigned; sonatypeBundleRelease"
29+ - name : Build and publish snapshot version to maven
30+ if : ${{ env.IS_SNAPSHOT == 'false' }}
2531 run : sbt "+clean; +publishSigned"
2632 - name : Setup buildx builder
2733 uses : docker/setup-buildx-action@v3
Original file line number Diff line number Diff line change @@ -9,18 +9,18 @@ For more refer to <https://issues.apache.org/jira/browse/FLINK-13414>.
99``` bash
1010rm $FLINK_HOME /lib/flink-scala* .jar
1111
12- wget https://central.sonatype.com/repository/maven-snapshots/ pl/touk/flink-scala_2.13 /1.1.3-SNAPSHOT /flink-scala_2.13 -1.1.3-SNAPSHOT- assembly.jar -O $FLINK_HOME /lib/flink-scala_2.13 -1.1.3-SNAPSHOT -assembly.jar
12+ wget https://repo1.maven.org/maven2/ pl/touk/flink-scala_2.12 /1.1.3/flink-scala_2.12 -1.1.3-assembly.jar -O $FLINK_HOME /lib/flink-scala_2.12 -1.1.3-assembly.jar
1313```
1414
1515## Using as a lib (probably only sufficient when child-first classloading is enabled on flink)
1616``` scala
17- libraryDependencies += " pl.touk" %% " flink-scala" % " 1.1.3-SNAPSHOT "
17+ libraryDependencies += " pl.touk" %% " flink-scala" % " 1.1.3"
1818```
1919
2020## Prebuild flink images
2121* we provide prebuild flink docker images for scala 2.12 and 2.13 on [ Docker Hub] ( https://hub.docker.com/r/touk/flink )
2222
23- ## Publishing
23+ ## Publishing (actually on manual github action)
2424```
25- sbt publishSigned sonatypeBundleRelease
25+ sbt "+ publishSigned; sonatypeBundleRelease"
2626```
Original file line number Diff line number Diff line change 11import sbtassembly .MergeStrategy
22
33name := " flink-scala"
4- version := " 1.1.3 "
4+ version := " 1.1.4-SNAPSHOT "
55
66val scala212 = " 2.12.20"
77val scala213 = " 2.13.16"
@@ -33,7 +33,7 @@ lazy val publishSettings = Seq(
3333 if (isSnapshot.value)
3434 Some (" snapshots" at " https://central.sonatype.com/repository/maven-snapshots/" )
3535 else {
36- sonatypePublishToBundle.value // todo: full release not tested yet
36+ sonatypePublishToBundle.value
3737 }
3838 },
3939 Test / publishArtifact := false ,
Original file line number Diff line number Diff line change 11addSbtPlugin(" com.eed3si9n" % " sbt-assembly" % " 2.3.1" )
2- addSbtPlugin(" org.xerial.sbt" % " sbt-sonatype" % " 3.10.0 " )
2+ addSbtPlugin(" org.xerial.sbt" % " sbt-sonatype" % " 3.12.2 " )
33addSbtPlugin(" com.github.sbt" % " sbt-pgp" % " 2.2.1" )
You can’t perform that action at this time.
0 commit comments