Skip to content

Commit

Permalink
I give up 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxikle committed Jun 13, 2024
1 parent 9421456 commit cac4272
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
- run: chmod +x gradlew

- name: Publish
run: ./gradlew -Dorg.gradle.jvmargs=--enable-preview -DREPO_PASSWORD=${{ secrets.REPO_PASSWORD }} -DREPO_USERNAME=${{ secrets.REPO_USERNAME }} --no-daemon publish
run: ./gradlew :publish -Dorg.gradle.jvmargs=--enable-preview -DREPO_PASSWORD=${{ secrets.REPO_PASSWORD }} -DREPO_USERNAME=${{ secrets.REPO_USERNAME }}
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- run: chmod +x gradlew

- name: Assemble
run: ./gradlew -Dorg.gradle.jvmargs=--enable-preview -DREPO_PASSWORD=${{ secrets.REPO_PASSWORD }} -DREPO_USERNAME=${{ secrets.REPO_USERNAME }} --no-daemon assemble
run: ./gradlew :assemble -Dorg.gradle.jvmargs=--enable-preview -DREPO_PASSWORD=${{ secrets.REPO_PASSWORD }} -DREPO_USERNAME=${{ secrets.REPO_USERNAME }}

- name: Run Compiled Artifact
run: java --enable-preview -jar build/libs/cytosis.jar --ci-test
8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ publishing {
authentication {
create<BasicAuthentication>("basic") {
// Use providers to get the properties or fallback to environment variables
println(System.getenv("REPO_PASSWORD").length)
println("pass: " + System.getenv("REPO_PASSWORD") + " | user: " + System.getenv("REPO_USERNAME"))
val user = providers.gradleProperty("username").orElse(System.getenv("REPO_USERNAME"))
val pass = providers.gradleProperty("password").orElse(System.getenv("REPO_PASSWORD"))
println(System.getProperty("REPO_PASSWORD").length)
println("pass: " + System.getProperty("REPO_PASSWORD") + " | user: " + System.getProperty("REPO_USERNAME"))
val user = providers.gradleProperty("username").orElse(System.getProperty("REPO_USERNAME"))
val pass = providers.gradleProperty("password").orElse(System.getProperty("REPO_PASSWORD"))
credentials {
username = user.toString()
password = pass.toString()
Expand Down

0 comments on commit cac4272

Please sign in to comment.