Skip to content

Commit b84f2ad

Browse files
committed
github action fix
1 parent 2cc80e9 commit b84f2ad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/gradlepublish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
# The USERNAME and PASSWORD need to correspond to the credentials environment variables used in
2323
# the publishing section of your build.gradle
2424
- name: Publish to GitHub Packages
25-
with:
25+
env:
2626
USERNAME: ${{ secrets.GPR_USERNAME }}
2727
TOKEN: ${{ secrets.GPR_TOKEN }}
2828
run: |
29-
sudo ./gradlew assembleRelease publish --stacktrace
29+
sudo ./gradlew -Pname="$USERNAME" -Ptoken="$TOKEN" assembleRelease publish --stacktrace

pluto-kotlin-client-sdk/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ publishing {
6262
name = 'github'
6363
url = uri("https://maven.pkg.github.com/MuShare/Pluto-Kotlin-SDK")
6464
credentials {
65-
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
66-
password = project.findProperty("gpr.user") ?: System.getenv("TOKEN")
65+
username = project.findProperty("name") ?: System.getenv("USERNAME")
66+
password = project.findProperty("token") ?: System.getenv("TOKEN")
6767
}
6868
}
6969
}

0 commit comments

Comments
 (0)