diff --git a/.github/workflows/deploy-ci.yml b/.github/workflows/deploy-ci.yml
deleted file mode 100644
index 9e0ec79..0000000
--- a/.github/workflows/deploy-ci.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-name: Deploy CI
-
-on:
- push:
- branches:
- - release
-
-jobs:
- build:
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v2
- - name: Set up JDK 8
- uses: actions/setup-java@v2
- with:
- java-version: "8"
- distribution: "temurin"
-
- - name: Build with Maven
- run: mvn --batch-mode --update-snapshots -DskipTests verify
-
- - name: Publish to GitHub Packages
- env:
- GITHUB_TOKEN: ${{ github.token }}
- run: mvn -DskipTests deploy
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
new file mode 100644
index 0000000..08a4694
--- /dev/null
+++ b/.github/workflows/deploy.yml
@@ -0,0 +1,29 @@
+name: Deploy to Maven Central
+
+on:
+ push:
+ branches:
+ - release
+
+jobs:
+ publish:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - name: Set up Maven Central Repository
+ uses: actions/setup-java@v3
+ with:
+ java-version: '8'
+ distribution: 'temurin'
+ cache: 'maven'
+ server-id: ossrh
+ server-username: OSSRH_USERNAME
+ server-password: OSSRH_PASSWORD
+ gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
+ gpg-passphrase: GPG_PASSPHRASE
+ - name: Publish package
+ run: mvn -Psign -DskipTests --batch-mode deploy
+ env:
+ OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
+ OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
+ GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
\ No newline at end of file
diff --git a/.github/workflows/check-ci.yml b/.github/workflows/test.yml
similarity index 90%
rename from .github/workflows/check-ci.yml
rename to .github/workflows/test.yml
index eae1503..6b283f8 100644
--- a/.github/workflows/check-ci.yml
+++ b/.github/workflows/test.yml
@@ -1,4 +1,4 @@
-name: Check CI
+name: Check build
on:
push:
@@ -8,7 +8,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
-
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
@@ -21,5 +20,5 @@ jobs:
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- - name: Build with Maven
+ - name: Build
run: mvn --batch-mode --update-snapshots -DskipTests verify
diff --git a/pom.xml b/pom.xml
index 73b32d8..e35106f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,18 +3,49 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4.0.0
- com.lycoon
- clashapi
+ io.github.lycoon
+ clash-api
3.0.2
+
+ ${project.groupId}:${project.artifactId}
+ Kotlin wrapper for Clash of Clans game API.
+ https://github.com/Lycoon/clash-api
+
+
+
+ GPL-3.0 License
+ https://github.com/Lycoon/clash-api/blob/dev/LICENSE
+
+
+
+
+
+ Hugo "Lycoon" Bois
+ hugo.bois@hotmail.fr
+ https://github.com/Lycoon
+
+
+
+
+ scm:git:git://github.com/lycoon/clash-api.git
+ scm:git:ssh://github.com:lycoon/clash-api.git
+ https://github.com/Lycoon/clash-api/tree/release
+
+
+
+
+ ossrh
+ https://s01.oss.sonatype.org/content/repositories/snapshots
+
- github
- ClashAPI
- https://maven.pkg.github.com/Lycoon/clash-api
+ ossrh
+ https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/
+
org.jetbrains.kotlinx
@@ -41,8 +72,53 @@
+
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+ 2.2.1
+
+
+ attach-sources
+
+ jar-no-fork
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 2.9.1
+
+
+ attach-javadocs
+
+ jar
+
+
+
+
+
+
+
+ org.sonatype.plugins
+ nexus-staging-maven-plugin
+ 1.6.7
+ true
+
+ ossrh
+ https://s01.oss.sonatype.org/
+ true
+
+
+
+
org.jetbrains.kotlin
kotlin-maven-plugin
@@ -75,6 +151,7 @@
+
1.8
1.8
@@ -84,4 +161,37 @@
1.3.1
1.8
+
+
+
+
+ sign
+
+
+
+
+ org.apache.maven.plugins
+ maven-gpg-plugin
+ 1.5
+
+
+ sign-artifacts
+ verify
+
+ sign
+
+
+
+
+
+
+ --pinentry-mode
+ loopback
+
+
+
+
+
+
+