Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Rakambda committed Sep 5, 2024
1 parent bb03234 commit 5c2eaa8
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/gradle_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build & Test

on:
push:
workflow_dispatch:

permissions:
contents: write

jobs:
build:
uses: RakambdaOrg/rakambda-github-workflows/.github/workflows/gradle-build-test.yml@main
with:
java-version: ${{ vars.JAVA_VERSION }}
artifact-name: Gradle-Libs
generate-jacoco: true
send-codecov: true
secrets:
codecov-token: ${{ secrets.CODECOV_TOKEN }}
permissions:
checks: write
15 changes: 15 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Publish project to GitHub Packages
on:
workflow_dispatch:
release:
types:
- created

jobs:
publish:
uses: RakambdaOrg/rakambda-github-workflows/.github/workflows/gradle-puslish.yml@main
with:
java-version: ${{ vars.JAVA_VERSION }}
permissions:
contents: read
packages: write
11 changes: 11 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,15 @@ publishing {
from(components["java"])
}
}

repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/RakambdaOrg/ProgressBars")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}

0 comments on commit 5c2eaa8

Please sign in to comment.