Skip to content

Commit

Permalink
Testing publish java workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mzieniukbw committed Oct 11, 2024
1 parent 97116b1 commit bb668b3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 23 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/publish-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,18 @@ jobs:
with:
ref: ${{ needs.validate.outputs.tag_name }}

- name: Azure login
uses: Azure/login@e15b166166a8746d1a47596803bd8c1b595455cf # v1.6.0
with:
creds: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}

- name: Retrieve secrets
id: retrieve-secrets
uses: bitwarden/gh-actions/get-keyvault-secrets@main
with:
keyvault: ${{ env._KEY_VAULT }}
secrets: "maven-sonartype-ssrh-username,
maven-sonartype-ossrh-password"
# - name: Azure login
# uses: Azure/login@e15b166166a8746d1a47596803bd8c1b595455cf # v1.6.0
# with:
# creds: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}

# - name: Retrieve secrets
# id: retrieve-secrets
# uses: bitwarden/gh-actions/get-keyvault-secrets@main
# with:
# keyvault: ${{ env._KEY_VAULT }}
# secrets: "maven-sonartype-ssrh-username,
# maven-sonartype-ossrh-password"

- name: Setup java
uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4.4.0
Expand Down Expand Up @@ -124,5 +124,5 @@ jobs:
run: ./gradlew publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_USERNAME: ${{ steps.retrieve-secrets.outputs.maven-sonartype-ssrh-username }}
MAVEN_PASSWORD: ${{ steps.retrieve-secrets.outputs.maven-sonartype-ossrh-password }}
# MAVEN_USERNAME: ${{ steps.retrieve-secrets.outputs.maven-sonartype-ssrh-username }}
# MAVEN_PASSWORD: ${{ steps.retrieve-secrets.outputs.maven-sonartype-ossrh-password }}
9 changes: 0 additions & 9 deletions languages/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,6 @@ repositories {
password = System.getenv("GITHUB_TOKEN")
}
}
maven {
name = "OSSRH"
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
}
}
}
Expand Down Expand Up @@ -103,4 +95,3 @@ jar {
}
}
}

0 comments on commit bb668b3

Please sign in to comment.