Skip to content

Commit

Permalink
Fix CICD (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
geirolz authored Jul 9, 2024
1 parent 73b2075 commit fff7870
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 26 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@ on:
branches:
- main

# env variables
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}

# jobs
jobs:
build:
Expand Down Expand Up @@ -66,6 +58,8 @@ jobs:
#----------- COVERAGE -----------
- name: Upload Coverage to Codacy
run: bash <(curl -Ls https://coverage.codacy.com/get.sh)
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}

deploy:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -94,4 +88,9 @@ jobs:

#----------- RELEASE -----------
- name: Release
run: sbt clean compile ci-release
run: sbt clean compile ci-release
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
33 changes: 16 additions & 17 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,25 @@ lazy val scala213 = "2.13.14"
lazy val scala33 = "3.3.3"
lazy val supportedScalaVersions = List(scala213, scala33)

//## global project to no publish ##
lazy val root: Project = project
.in(file("."))
.settings(
inThisBuild(
List(
organization := prjOrg,
homepage := Some(url(s"https://github.com/geirolz/$prjName")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"DavidGeirola",
"David Geirola",
"[email protected]",
url("https://github.com/geirolz")
)
)
inThisBuild(
List(
organization := prjOrg,
homepage := Some(url(s"https://github.com/geirolz/$prjName")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"DavidGeirola",
"David Geirola",
"[email protected]",
url("https://github.com/geirolz")
)
)
)
)

//## global project to no publish ##
lazy val root: Project = project
.in(file("."))
.settings(baseSettings)
.settings(noPublishSettings)
.settings(
Expand Down

0 comments on commit fff7870

Please sign in to comment.