-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(build): use semantic-release for automatic release publishing
- Loading branch information
Showing
10 changed files
with
75 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ build/ | |
classes/ | ||
idea/ | ||
.gradle/ | ||
node_modules/ | ||
|
||
jadx-output/ | ||
*-tmp/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
branch: release | ||
verifyConditions: | ||
- '@semantic-release/github' | ||
prepare: | ||
- path: '@semantic-release/exec' | ||
cmd: "JADX_VERSION=${nextRelease.version} ./gradlew clean dist" | ||
publish: | ||
- path: '@semantic-release/exec' | ||
cmd: "JADX_VERSION=${nextRelease.version} BINTRAY_PACKAGE=releases bash scripts/bintray-upload.sh" | ||
- path: '@semantic-release/github' | ||
assets: | ||
- path: 'build/*.zip' | ||
label: 'zip bundle' | ||
- path: 'build/*.exe' | ||
label: 'jadx-gui windows' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
set -xe | ||
|
||
export JFROG_CLI_OFFER_CONFIG=false | ||
export JFROG_CLI_LOG_LEVEL=DEBUG | ||
|
||
npm install -g jfrog-cli-go | ||
|
||
TARGET=skylot/jadx/${BINTRAY_PACKAGE}/v${JADX_VERSION} | ||
CREDENTIALS="--user=skylot --key=${BINTRAY_KEY}" | ||
|
||
jfrog bt version-create ${TARGET} ${CREDENTIALS} --desc=${JADX_VERSION} | ||
jfrog bt upload 'build/jadx.*\.(zip|exe)' ${TARGET} ${CREDENTIALS} --regexp=true --publish=true | ||
jfrog bt version-publish ${TARGET} ${CREDENTIALS} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
set -xe | ||
|
||
# upload coverage to codecov | ||
./gradlew clean build jacocoTestReport | ||
bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports" | ||
|
||
# run sonar checks | ||
./gradlew clean sonarqube -Dsonar.host.url=${SONAR_HOST} -Dsonar.organization=${SONAR_ORG} -Dsonar.login=${SONAR_TOKEN} || echo "Skip sonar build and upload" | ||
|
||
# upload bundles to bintray unstable package | ||
./gradlew clean dist | ||
BINTRAY_PACKAGE=unstable bash scripts/bintray-upload.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
set -xe | ||
|
||
npm install -g semantic-release | ||
npm install -g semantic-release/exec | ||
semantic-release |