Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cicd #37

Merged
merged 1 commit into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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",
"david.geirola@gmail.com",
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",
"david.geirola@gmail.com",
url("https://github.com/geirolz")
)
)
)
)
)
.settings(baseSettings)
.settings(noPublishSettings)
.settings(
Expand Down