Skip to content

Commit

Permalink
Try publishing the multiplatform package to Github
Browse files Browse the repository at this point in the history
  • Loading branch information
hufman committed May 2, 2024
1 parent 4e44d17 commit a5e145d
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 8 deletions.
25 changes: 24 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,27 @@ jobs:
- name: Upload coverage results
run: ./gradlew coverage coveralls --stacktrace
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout the project
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Set release name
run: sed -i "s/^\s+version '.*'/version '${{ github.event.inputs.version }}'/" build.gradle && cat build.gradle
if: ${{ github.event.inputs.version }}
- name: Build the project
run: ./gradlew build --stacktrace
- name: Publish package to Github
run: ./gradlew publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 13 additions & 3 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ kotlin {
}
jvmMain {
dependencies {
implementation project(path: ':IDriveConnectKitEtch')
implementation project(path: ':idriveconnectkit-etch')
}
}

Expand All @@ -41,8 +41,18 @@ publishing {
maven(MavenPublication) {
// publish to Jitpack
groupId 'io.bimmergestalt'
artifactId 'IDriveConnectKit'
version '0.6'
artifactId 'idriveconnectkit'
version '0.6-etch-split'
}
}
repositories {
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/BimmerGestalt/IDriveConnectKit"
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}
4 changes: 2 additions & 2 deletions etch/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ publishing {
maven(MavenPublication) {
// publish to Jitpack
groupId 'io.bimmergestalt'
artifactId 'IDriveConnectKitEtch'
version '0.6'
artifactId 'idriveconnectkit-etch'
version '0.6-etch-split'

from components.java
}
Expand Down
4 changes: 2 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
include ':core', ':etch'
project(':core').name = "IDriveConnectKit"
project(':etch').name = "IDriveConnectKitEtch"
project(':core').name = "idriveconnectkit"
project(':etch').name = "idriveconnectkit-etch"

0 comments on commit a5e145d

Please sign in to comment.