Skip to content

Commit

Permalink
ci: add publish repo and build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
silenium-dev committed Jul 8, 2024
1 parent 79888d2 commit db12e0d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "Build and Test"
on:
push:
workflow_dispatch:
pull_request:
env:
REPOSILITE_USERNAME: ${{ secrets.REPOSILITE_USERNAME }}
REPOSILITE_PASSWORD: ${{ secrets.REPOSILITE_PASSWORD }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
- name: Build with Gradle
run: ./gradlew build publish
11 changes: 10 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = "dev.silenium.compose"
version = "0.0.0-SNAPSHOT"
version = findProperty("deploy.version") as String? ?: "0.0.0-SNAPSHOT"

repositories {
maven("https://reposilite.silenium.dev/snapshots") {
Expand Down Expand Up @@ -91,4 +91,13 @@ publishing {
from(components["java"])
}
}
repositories {
maven("https://reposilite.silenium.dev/snapshots") {
name = "reposilite"
credentials {
username = System.getenv("REPOSILITE_USERNAME") ?: project.findProperty("reposiliteUser") as String? ?: ""
password = System.getenv("REPOSILITE_PASSWORD") ?: project.findProperty("reposilitePassword") as String? ?: ""
}
}
}
}

0 comments on commit db12e0d

Please sign in to comment.