File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Publish package to the Maven Central Repository
2+ on :
3+ push :
4+ branches :
5+ - ' master'
6+ jobs :
7+ publish :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v4
11+ - name : Set up Java
12+ uses : actions/setup-java@v4
13+ with :
14+ java-version : ' 17'
15+ distribution : ' temurin'
16+
17+ - name : Publish package
18+ run : ./gradlew publish
19+ env :
20+ MAVEN_USERNAME : ${{ secrets.MAVEN_USERNAME }}
21+ MAVEN_PASSWORD : ${{ secrets.MAVEN_PASSWORD }}
Original file line number Diff line number Diff line change @@ -84,13 +84,23 @@ dependencies {
8484publishing {
8585 publications {
8686 release(MavenPublication ) {
87- groupId = ' com .github.dalgarins '
87+ groupId = ' io .github.ev-map '
8888 artifactId = ' android-spatialite'
89- version = ' 2.1.2-alpha'
89+
90+ version = ' 2.1.2-alpha-SNAPSHOT'
9091
9192 afterEvaluate {
9293 from components. release
9394 }
9495 }
9596 }
97+ repositories {
98+ maven {
99+ url = " https://central.sonatype.com/repository/maven-snapshots/"
100+ credentials {
101+ username = System . getenv(" MAVEN_USERNAME" )
102+ password = System . getenv(" MAVEN_PASSWORD" )
103+ }
104+ }
105+ }
96106}
You can’t perform that action at this time.
0 commit comments