Skip to content

Commit 4a29021

Browse files
committed
initial work for gh package release
1 parent 09bc7ec commit 4a29021

File tree

8 files changed

+98
-0
lines changed

8 files changed

+98
-0
lines changed

.github/workflows/gh_release.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release
2+
on:
3+
push:
4+
tags: ["*"]
5+
workflow_dispatch:
6+
jobs:
7+
release:
8+
concurrency: release
9+
runs-on: ubuntu-22.04
10+
steps:
11+
- uses: actions/checkout@v2
12+
with:
13+
fetch-depth: 0
14+
- name: Set up JDK
15+
uses: actions/setup-java@v3
16+
with:
17+
distribution: 'temurin'
18+
java-version: 19
19+
- uses: actions/cache@v2
20+
with:
21+
path: |
22+
~/.sbt
23+
~/.coursier
24+
key: ${{ runner.os }}-sbt-${{ hashfiles('**/build.sbt') }}
25+
- run: sbt +test ciReleaseTagNextVersion ++3.4.1 publish
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

core-tests/build.sbt

+12
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,15 @@ libraryDependencies ++= Seq(
77
)
88

99
Test / testOptions += Tests.Argument(TestFrameworks.JUnit, "-a", "-v")
10+
11+
12+
githubOwner := "Privado-Inc"
13+
githubRepository := "overflowdb"
14+
15+
credentials +=
16+
Credentials(
17+
"GitHub Package Registry",
18+
"maven.pkg.github.com",
19+
"Privado-Inc",
20+
sys.env.getOrElse("GITHUB_TOKEN", "N/A")
21+
)

core/build.sbt

+11
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,14 @@ libraryDependencies ++= Seq(
66
"com.h2database" % "h2-mvstore" % "1.4.200",
77
"org.slf4j" % "slf4j-api" % "2.0.7"
88
)
9+
10+
githubOwner := "Privado-Inc"
11+
githubRepository := "overflowdb"
12+
13+
credentials +=
14+
Credentials(
15+
"GitHub Package Registry",
16+
"maven.pkg.github.com",
17+
"Privado-Inc",
18+
sys.env.getOrElse("GITHUB_TOKEN", "N/A")
19+
)

formats/build.sbt

+12
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,15 @@ libraryDependencies ++= Seq(
99
)
1010

1111
Test / console / scalacOptions -= "-Xlint"
12+
13+
14+
githubOwner := "Privado-Inc"
15+
githubRepository := "overflowdb"
16+
17+
credentials +=
18+
Credentials(
19+
"GitHub Package Registry",
20+
"maven.pkg.github.com",
21+
"Privado-Inc",
22+
sys.env.getOrElse("GITHUB_TOKEN", "N/A")
23+
)

project/plugins.sbt

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.0")
22
addSbtPlugin("io.shiftleft" % "sbt-ci-release-early" % "2.0.19")
33
addSbtPlugin("com.github.sbt" % "sbt-dynver" % "5.0.1")
4+
addSbtPlugin("com.codecommit" % "sbt-github-packages" % "0.5.3")

testdomains/build.sbt

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
11
name := "testdomains"
22

33
publish / skip := true
4+
5+
6+
githubOwner := "Privado-Inc"
7+
githubRepository := "overflowdb"
8+
9+
credentials +=
10+
Credentials(
11+
"GitHub Package Registry",
12+
"maven.pkg.github.com",
13+
"Privado-Inc",
14+
sys.env.getOrElse("GITHUB_TOKEN", "N/A")
15+
)

traversal-tests/build.sbt

+12
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,15 @@ name := "overflowdb-traversal-tests"
33
publish / skip := true
44

55
Test / console / scalacOptions -= "-Xlint"
6+
7+
8+
githubOwner := "Privado-Inc"
9+
githubRepository := "overflowdb"
10+
11+
credentials +=
12+
Credentials(
13+
"GitHub Package Registry",
14+
"maven.pkg.github.com",
15+
"Privado-Inc",
16+
sys.env.getOrElse("GITHUB_TOKEN", "N/A")
17+
)

traversal/build.sbt

+11
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,14 @@ libraryDependencies ++= Seq(
44
"net.oneandone.reflections8" % "reflections8" % "0.11.7",
55
"de.vandermeer" % "asciitable" % "0.3.2",
66
)
7+
8+
githubOwner := "Privado-Inc"
9+
githubRepository := "overflowdb"
10+
11+
credentials +=
12+
Credentials(
13+
"GitHub Package Registry",
14+
"maven.pkg.github.com",
15+
"Privado-Inc",
16+
sys.env.getOrElse("GITHUB_TOKEN", "N/A")
17+
)

0 commit comments

Comments
 (0)