-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6abec9b
commit f8127c9
Showing
7 changed files
with
81 additions
and
2 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,37 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
publish: | ||
runs-on: macos-latest | ||
if: github.repository == 'wandering-inc/scoop-sdk-kotlin' && github.ref == 'refs/heads/main' | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up our JDK environment | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: zulu | ||
java-version: 17 | ||
|
||
- name: Upload Artifacts | ||
run: ./gradlew publishAllPublicationsToMavenCentralRepository --no-daemon --no-parallel | ||
env: | ||
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }} | ||
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }} | ||
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }} | ||
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} | ||
|
||
- name: Retrieve version | ||
run: | | ||
echo "VERSION_NAME=$(cat gradle.properties | grep -w "VERSION_NAME" | cut -d'=' -f2)" >> $GITHUB_ENV | ||
- name: Publish release | ||
run: ./gradlew closeAndReleaseRepository --no-daemon --no-parallel | ||
if: "!endsWith(env.VERSION_NAME, '-SNAPSHOT')" | ||
env: | ||
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }} | ||
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }} |
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 |
---|---|---|
|
@@ -10,3 +10,19 @@ android.defaults.buildfeatures.resvalues=false | |
android.defaults.buildfeatures.shaders=false | ||
android.defaults.buildFeatures.buildConfig=false | ||
xcodeproj=./ios | ||
|
||
# POM file | ||
GROUP=ai.wandering.scoop | ||
VERSION_NAME=1.0.0-SNAPSHOT | ||
POM_PACKAGING=pom | ||
POM_DESCRIPTION=Scoop's Kotlin SDK | ||
|
||
POM_URL = https://github.com/wandering-inc/scoop-sdk-kotlin | ||
POM_SCM_URL=https://github.com/wandering-inc/scoop-sdk-kotlin | ||
POM_SCM_CONNECTION=scm:git:https://github.com/wandering-inc/scoop-sdk-kotlin.git | ||
POM_SCM_DEV_CONNECTION=scm:git:[email protected]:wandering-inc/scoop-sdk-kotlin.git | ||
POM_LICENCE_NAME=Apache License | ||
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0 | ||
POM_LICENCE_DIST=repo | ||
POM_DEVELOPER_ID=wandering-inc | ||
POM_DEVELOPER_NAME=wandering-inc |
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
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,3 @@ | ||
POM_NAME=ai.wandering.scoop | ||
POM_ARTIFACT_ID=v1 | ||
POM_PACKAGING=jar |