Skip to content

Commit

Permalink
Use gradlew.bat on windows and rename properties
Browse files Browse the repository at this point in the history
  • Loading branch information
StefMa committed Sep 15, 2023
1 parent f7f858c commit 19901a0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
uses: actions/checkout@v4

- name: Publish metadata
run: ./gradlew publishKotlinMultiplatformPublicationToGitHubPackagesRepository -PgithubPackages.user=$GITHUB_ACTOR -PgithubPackages.key=${{ secrets.GITHUB_TOKEN }}
run: ./gradlew publishKotlinMultiplatformPublicationToGitHubPackagesRepository -PgithubPackagesUser=$GITHUB_ACTOR -PgithubPackagesKey=${{ secrets.GITHUB_TOKEN }}

publish-jvm:
runs-on: ubuntu-latest
Expand All @@ -22,7 +22,7 @@ jobs:
uses: actions/checkout@v4

- name: Publish jvm
run: ./gradlew publishJvmPublicationToGitHubPackagesRepository -PgithubPackages.user=$GITHUB_ACTOR -PgithubPackages.key=${{ secrets.GITHUB_TOKEN }}
run: ./gradlew publishJvmPublicationToGitHubPackagesRepository -PgithubPackagesUser=$GITHUB_ACTOR -PgithubPackagesKey=${{ secrets.GITHUB_TOKEN }}

publish-linux:
runs-on: ubuntu-latest
Expand All @@ -31,7 +31,7 @@ jobs:
uses: actions/checkout@v4

- name: Publish linux
run: ./gradlew publishNativePublicationToGitHubPackagesRepository -PgithubPackages.user=$GITHUB_ACTOR -PgithubPackages.key=${{ secrets.GITHUB_TOKEN }}
run: ./gradlew publishNativePublicationToGitHubPackagesRepository -PgithubPackagesUser=$GITHUB_ACTOR -PgithubPackagesKey=${{ secrets.GITHUB_TOKEN }}

publish-darwin:
runs-on: macos-latest
Expand All @@ -40,7 +40,7 @@ jobs:
uses: actions/checkout@v4

- name: Publish darwin
run: ./gradlew publishNativePublicationToGitHubPackagesRepository -PgithubPackages.user=$GITHUB_ACTOR -PgithubPackages.key=${{ secrets.GITHUB_TOKEN }}
run: ./gradlew publishNativePublicationToGitHubPackagesRepository -PgithubPackagesUser=$GITHUB_ACTOR -PgithubPackagesKey=${{ secrets.GITHUB_TOKEN }}

publish-mingw:
runs-on: windows-latest
Expand All @@ -49,4 +49,4 @@ jobs:
uses: actions/checkout@v4

- name: Publish mingw
run: ./gradlew publishNativePublicationToGitHubPackagesRepository -PgithubPackages\.user=$GITHUB_ACTOR -PgithubPackages\.key=${{ secrets.GITHUB_TOKEN }}
run: ./gradlew.bat publishNativePublicationToGitHubPackagesRepository -PgithubPackagesUser=$GITHUB_ACTOR -PgithubPackagesKey=${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
uses: actions/checkout@v4

- name: Run tests
run: ./gradlew nativeTest
run: ./gradlew.bat nativeTest

- name: Test Report
uses: mikepenz/action-junit-report@v4
Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ publishing {
maven("https://maven.pkg.github.com/ioki-mobility/kmp-lokalise-api") {
name = "GitHubPackages"
credentials {
username = project.findProperty("githubPackages.user") as? String
password = project.findProperty("githubPackages.key") as? String
username = project.findProperty("githubPackagesUser") as? String
password = project.findProperty("githubPackagesKey") as? String
}
}
}
Expand Down

0 comments on commit 19901a0

Please sign in to comment.