Skip to content

Commit

Permalink
chore: move publish part to releaserc
Browse files Browse the repository at this point in the history
  • Loading branch information
sshelomentsev committed Mar 26, 2024
1 parent 1e4c0f2 commit c02e016
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ jobs:
appId: ${{ vars.APP_ID }}
language: java
java-version: '8'
prepare-command: |
./gradlew jar --no-daemon
./gradlew publishToMavenLocal
secrets:
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
env:
Expand Down
3 changes: 2 additions & 1 deletion .releaserc.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ module.exports = {
[
"@semantic-release/exec",
{
"prepareCmd": "bash ./scripts/generate.sh -v ${nextRelease.version}"
"prepareCmd": "bash ./scripts/generate.sh -v ${nextRelease.version}",
"publishCmd": "bash ./gradlew publishToMavenLocal"
}
],
[
Expand Down
2 changes: 2 additions & 0 deletions scripts/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ find ./docs -type f ! -name "DecryptionKey.md" ! -name "Sealed.md" -exec rm {} +
java -jar ./bin/generator.jar generate -c config.yaml -g java --library jersey2 -i res/fingerprint-server-api.yaml --skip-validate-spec -o . -t template

./gradlew removeWrongDocumentationLinks

./gradlew jar

0 comments on commit c02e016

Please sign in to comment.