File tree Expand file tree Collapse file tree 4 files changed +53
-9
lines changed Expand file tree Collapse file tree 4 files changed +53
-9
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+
6
+ name : Publish
7
+
8
+ on :
9
+ release :
10
+ types : [ "created" ]
11
+ branches : [ "main" ]
12
+
13
+ permissions :
14
+ contents : read
15
+
16
+ jobs :
17
+ publish :
18
+ runs-on : ubuntu-latest
19
+ steps :
20
+ - uses : actions/checkout@v4
21
+ - name : Set up JDK 21
22
+ uses : actions/setup-java@v4
23
+ with :
24
+ java-version : ' 21'
25
+ distribution : ' temurin'
26
+ cache : ' sbt'
27
+ - uses : sbt/setup-sbt@v1
28
+ - name : Publish package
29
+ run : sbt test publish
30
+ env :
31
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 3
3
# separate terms of service, privacy policy, and support
4
4
# documentation.
5
5
6
- name : CI
6
+ name : Test
7
7
8
8
on :
9
9
push :
@@ -16,9 +16,7 @@ permissions:
16
16
17
17
jobs :
18
18
build :
19
-
20
19
runs-on : ubuntu-latest
21
-
22
20
steps :
23
21
- uses : actions/checkout@v4
24
22
- name : Set up JDK 21
29
27
cache : ' sbt'
30
28
- uses : sbt/setup-sbt@v1
31
29
- name : Run tests with SBT
32
- run : sbt test
33
- # Optional: This step uploads information to the GitHub dependency graph and unblocking Dependabot alerts for the repository
34
- # - name: Upload dependency graph
35
- # uses: scalacenter/sbt-dependency-submission@ab086b50c947c9774b70f39fc7f6e20ca2706c91
30
+ run : sbt test
Original file line number Diff line number Diff line change 1
1
# scala-stdnum
2
2
3
- [ ![ CI ] ( https://github.com/ppbustamante/scala-stdnum/actions/workflows/scala .yml/badge.svg )] ( https://github.com/ppbustamante/scala-stdnum/actions/workflows/scala .yml )
3
+ [ ![ Testing ] ( https://github.com/ppbustamante/scala-stdnum/actions/workflows/test .yml/badge.svg )] ( https://github.com/ppbustamante/scala-stdnum/actions/workflows/test .yml )
4
4
5
5
A Scala library to parse, validate and reformat standard numbers and codes in different formats. It contains a large
6
6
collection of number formats.
Original file line number Diff line number Diff line change 1
1
ThisBuild / organization := " cl.mixin"
2
2
ThisBuild / scalaVersion := " 3.3.5"
3
- ThisBuild / version := " 1.0.0-SNAPSHOT"
3
+ ThisBuild / version := " 1.0.0"
4
+ ThisBuild / versionScheme := Some (" semver-spec" )
5
+
6
+ ThisBuild / homepage := Some (url(" https://github.com/ppbustamante/scala-stdnum" ))
7
+ ThisBuild / licenses := Seq (
8
+ " LICENSE" -> url(" https://github.com/ppbustamante/scala-stdnum/blob/main/LICENSE" )
9
+ )
10
+ ThisBuild / publishMavenStyle := true
11
+ ThisBuild / pomIncludeRepository := { _ => false }
12
+
13
+ ThisBuild / publishTo := Some (
14
+ " GitHub ppbustamante Apache Maven Packages" at " https://maven.pkg.github.com/ppbustamante/scala-stdnum"
15
+ )
16
+ ThisBuild / credentials += Credentials (
17
+ " GitHub Package Registry" ,
18
+ " maven.pkg.github.com" ,
19
+ " ppbustamante" ,
20
+ System .getenv(" GITHUB_TOKEN" )
21
+ )
4
22
5
23
lazy val root = project
6
24
.in(file(" ." ))
You can’t perform that action at this time.
0 commit comments