Skip to content

Commit

Permalink
Fix cicd (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
geirolz authored Jul 9, 2024
1 parent f35cf89 commit 61f9f3f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 27 deletions.
21 changes: 10 additions & 11 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 All @@ -43,7 +35,7 @@ jobs:

#----------- CACHE -----------
- name: Cache SBT
uses: actions/cache@v4
uses: actions/cache@v4.0.2
with:
# A list of files, directories, and wildcard patterns to cache and restore
path: |
Expand All @@ -63,6 +55,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 All @@ -80,7 +74,7 @@ jobs:

#----------- CACHE -----------
- name: Cache SBT
uses: actions/cache@v4
uses: actions/cache@v4.0.2
with:
# A list of files, directories, and wildcard patterns to cache and restore
path: |
Expand All @@ -91,4 +85,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 }}
31 changes: 15 additions & 16 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,25 @@ lazy val org = "com.github.geirolz"
lazy val scala33 = "3.3.3"
lazy val supportedScalaVersions = List(scala33)

inThisBuild(
List(
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 ##
val copyReadMe = taskKey[Unit]("Copy generated README to main folder.")
lazy val root: Project = project
.in(file("."))
.settings(
inThisBuild(
List(
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")
)
)
)
)
)
.settings(baseSettings)
.settings(noPublishSettings)
.settings(
Expand Down

0 comments on commit 61f9f3f

Please sign in to comment.