-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: [ANDROSDK-1860] Simplify and automatize release process (#2159)
- Loading branch information
Showing
9 changed files
with
92 additions
and
113 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
on: | ||
workflow_dispatch | ||
|
||
jobs: | ||
publish: | ||
name: Publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: temurin | ||
cache: 'gradle' | ||
- name: Change wrapper permission | ||
run: chmod +x ./gradlew | ||
|
||
- name: Publish Maven | ||
run: ./.github/workflows/scripts/publish-maven.sh | ||
env: | ||
NEXUS_USERNAME: ${{ secrets.SONATYPE_OSSRH_USERNAME }} | ||
NEXUS_PASSWORD: ${{ secrets.SONATYPE_OSSRH_PASSWORD }} | ||
SIGNING_PRIVATE_KEY: ${{ secrets.PGP_PRIVATE_KEY }} | ||
SIGNING_PASSWORD: ${{ secrets.PGP_PASSPHRASE }} |
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,9 @@ | ||
set -x | ||
|
||
branch=$(git rev-parse --abbrev-ref HEAD) | ||
|
||
if [ "$branch" = "main" ] || [ "$branch" = "master" ]; then | ||
./gradlew :core:publishToSonatype closeAndReleaseSonatypeStagingRepository -PremoveSnapshotSuffix | ||
else | ||
./gradlew :core:publishToSonatype | ||
fi |
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 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 |
---|---|---|
|
@@ -27,18 +27,17 @@ | |
*/ | ||
|
||
object Props { | ||
val GROUP = "org.hisp.dhis" | ||
val POM_NAME = "Core" | ||
val POM_ARTIFACT_ID = "android-core" | ||
val POM_PACKAGING = "aar" | ||
val POM_DESCRIPTION = "Android SDK for DHIS 2." | ||
val POM_URL = "https://github.com/dhis2/dhis2-android-sdk" | ||
val POM_SCM_URL = "https://github.com/dhis2/dhis2-android-sdk" | ||
val POM_SCM_CONNECTION = "scm:git:git://github.com/dhis2/dhis2-android-sdk.git" | ||
val POM_SCM_DEV_CONNECTION = "scm:git:ssh://[email protected]/dhis2/dhis2-android-sdk.git" | ||
val POM_LICENCE_NAME = "BSD" | ||
val POM_LICENCE_URL = "https://opensource.org/licenses/BSD-3-Clause" | ||
val POM_LICENCE_DIST = "repo" | ||
val POM_DEVELOPER_ID = "DHIS 2" | ||
val POM_DEVELOPER_NAME = "DHIS 2" | ||
const val POM_NAME = "Core" | ||
const val POM_ARTIFACT_ID = "android-core" | ||
const val POM_PACKAGING = "aar" | ||
const val POM_DESCRIPTION = "Android SDK for DHIS 2." | ||
const val POM_URL = "https://github.com/dhis2/dhis2-android-sdk" | ||
const val POM_SCM_URL = "https://github.com/dhis2/dhis2-android-sdk" | ||
const val POM_SCM_CONNECTION = "scm:git:git://github.com/dhis2/dhis2-android-sdk.git" | ||
const val POM_SCM_DEV_CONNECTION = "scm:git:ssh://[email protected]/dhis2/dhis2-android-sdk.git" | ||
const val POM_LICENCE_NAME = "BSD" | ||
const val POM_LICENCE_URL = "https://opensource.org/licenses/BSD-3-Clause" | ||
const val POM_LICENCE_DIST = "repo" | ||
const val POM_DEVELOPER_ID = "DHIS 2" | ||
const val POM_DEVELOPER_NAME = "DHIS 2" | ||
} |
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