Skip to content

Commit

Permalink
style: megalinter
Browse files Browse the repository at this point in the history
Signed-off-by: Yurii Shynbuiev <yurii.shynbuiev@iohk.io>
  • Loading branch information
yshyn-iohk committed Feb 26, 2025
1 parent cd1b1c9 commit d43e832
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Before you submit your Pull Request (PR) consider the following guidelines:

3. Make sure all your commits have DCO sign-off line with an email address that matches the commit author and the name on your GitHub account.

4. [Fork](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo) the https://github.com/hyperledger-identus/cloud-agent repo.
4. [Fork](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo) the <https://github.com/hyperledger-identus/cloud-agent> repo.

5. In your forked repository, make your changes in a new git branch:

Expand Down
24 changes: 12 additions & 12 deletions cloud-agent/client/generator/publish-clients.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ yarn -s

# Determine if the version is a snapshot or a release
if [[ "$AGENT_VERSION" == *-* ]]; then
echo "Publishing snapshot version"
echo "Publishing snapshot version"

# kotlin
gradle -p ../kotlin -Pversion=${AGENT_VERSION}-SNAPSHOT publish --info
# kotlin
gradle -p ../kotlin -Pversion=${AGENT_VERSION}-SNAPSHOT publish --info

# typescript
yarn --cwd ../typescript -s
yarn --cwd ../typescript publish --new-version ${AGENT_VERSION} --no-git-tag-version --non-interactive --tag snapshot --verbose
# typescript
yarn --cwd ../typescript -s
yarn --cwd ../typescript publish --new-version ${AGENT_VERSION} --no-git-tag-version --non-interactive --tag snapshot --verbose
else
echo "Publishing release version"
echo "Publishing release version"

# kotlin
gradle -p ../kotlin -Pversion=${AGENT_VERSION} publish closeAndReleaseSonatypeStagingRepository --info
# kotlin
gradle -p ../kotlin -Pversion=${AGENT_VERSION} publish closeAndReleaseSonatypeStagingRepository --info

# typescript
yarn --cwd ../typescript -s
yarn --cwd ../typescript publish --new-version ${AGENT_VERSION} --no-git-tag-version --non-interactive --tag latest --verbose
# typescript
yarn --cwd ../typescript -s
yarn --cwd ../typescript publish --new-version ${AGENT_VERSION} --no-git-tag-version --non-interactive --tag latest --verbose
fi
5 changes: 2 additions & 3 deletions cloud-agent/client/kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,12 @@ if (System.getenv().containsKey("GPG_PRIVATE") && System.getenv().containsKey("G
signing {
useInMemoryPgpKeys(
project.findProperty("signing.signingSecretKey") as String? ?: System.getenv("GPG_PRIVATE"),
project.findProperty("signing.signingSecretKeyPassword") as String? ?: System.getenv("GPG_PASSWORD")
project.findProperty("signing.signingSecretKeyPassword") as String? ?: System.getenv("GPG_PASSWORD"),
)
sign(publishing.publications)
}
}


nexusPublishing {
repositories {
sonatype {
Expand All @@ -109,4 +108,4 @@ nexusPublishing {
password.set(System.getenv("OSSRH_PASSWORD"))
}
}
}
}

0 comments on commit d43e832

Please sign in to comment.