Skip to content

Commit

Permalink
repo name updatd
Browse files Browse the repository at this point in the history
  • Loading branch information
ksharma-xyz committed Jul 1, 2024
1 parent 714db86 commit a14aebc
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 29 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/gen-kotlin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,35 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: List directory structure before building
run: ls -R

- name: Generate Protos
run: ./gradlew generateProtos

- name: List directory structure after building
run: ls -R

- name: List generated Kotlin files for debugging
run: ls -R lib/build/generated/source/wire/

- name: Upload generated Kotlin files
uses: actions/upload-artifact@v4
with:
name: generated-kotlin-files
path: build/generated/source/wire/*.kt

- name: Push to separate repo (replace with your details)
- name: Push to 'ksharma-xyz/Kotlin-Proto' repo
uses: actions/checkout@v4
with:
repository: 'ksharma/Kotlin-Proto' # Target repo
repository: 'ksharma-xyz/Kotlin-Proto' # Target repo
token: ${{ secrets.TOKEN }} # Use secret for authentication

- name: Configure Git
run: |
git config user.name 'Karan Sharma'
git config user.email '[email protected]'
git config --global init.defaultBranch <main>
git config --global init.defaultBranch main
- name: Create a new branch
run: |
git checkout -b kotlin
Expand Down
11 changes: 10 additions & 1 deletion lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,16 @@ plugins {
}

wire {
kotlin {}
kotlin {
javaInterop = true
out = "$projectDir/build/generated/source/wire"
}
protoPath {
srcDir("src/main/proto")
}
sourcePath {
srcDir("src/main/proto")
}
}

repositories {
Expand Down
10 changes: 0 additions & 10 deletions lib/src/main/kotlin/org/example/Library.kt

This file was deleted.

14 changes: 0 additions & 14 deletions lib/src/test/kotlin/org/example/LibraryTest.kt

This file was deleted.

0 comments on commit a14aebc

Please sign in to comment.