File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 22
22
# The USERNAME and PASSWORD need to correspond to the credentials environment variables used in
23
23
# the publishing section of your build.gradle
24
24
- name : Publish to GitHub Packages
25
- with :
25
+ env :
26
26
USERNAME : ${{ secrets.GPR_USERNAME }}
27
27
TOKEN : ${{ secrets.GPR_TOKEN }}
28
28
run : |
29
- sudo ./gradlew assembleRelease publish --stacktrace
29
+ sudo ./gradlew -Pname="$USERNAME" -Ptoken="$TOKEN" assembleRelease publish --stacktrace
Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ publishing {
62
62
name = ' github'
63
63
url = uri(" https://maven.pkg.github.com/MuShare/Pluto-Kotlin-SDK" )
64
64
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" )
67
67
}
68
68
}
69
69
}
You can’t perform that action at this time.
0 commit comments