From 6ed7240c728b91050c6578bc23ad39368508d72d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A6=82=E6=A2=A6=E6=8A=80=E6=9C=AF?= <596392912@qq.com>
Date: Wed, 12 Jun 2024 15:45:29 +0800
Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E8=B0=83=E8=AF=95=20github=20acti?=
=?UTF-8?q?on?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.github/workflows/publish-snapshot.yml | 6 +---
.github/workflows/test-and-build.yml | 2 +-
pom.xml | 47 +++++++++++++++-----------
3 files changed, 29 insertions(+), 26 deletions(-)
diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml
index 30c3817..0fb301a 100644
--- a/.github/workflows/publish-snapshot.yml
+++ b/.github/workflows/publish-snapshot.yml
@@ -20,13 +20,9 @@ jobs:
server-id: oss
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- gpg-passphrase: MAVEN_GPG_PASSWORD
- gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
- name: Publish to the Maven Central Repository
run: |
- chmod +x ./deploy.sh
- ./deploy.sh
+ mvn clean package deploy -P !develop
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
- MAVEN_GPG_PASSWORD: ${{ secrets.MAVEN_GPG_PASSWORD }}
diff --git a/.github/workflows/test-and-build.yml b/.github/workflows/test-and-build.yml
index 27620c2..0ab261e 100644
--- a/.github/workflows/test-and-build.yml
+++ b/.github/workflows/test-and-build.yml
@@ -14,4 +14,4 @@ jobs:
cache: 'maven'
java-version: 17
- name: Build with Maven
- run: mvn package
+ run: mvn package -P !develop
diff --git a/pom.xml b/pom.xml
index 6eac0c3..f677d4d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -496,26 +496,6 @@
-
-
- aliyun-repos
- https://maven.aliyun.com/nexus/content/groups/public/
-
- false
-
-
-
-
-
-
- aliyun-plugin
- https://maven.aliyun.com/nexus/content/groups/public/
-
- false
-
-
-
-
oss
@@ -528,6 +508,33 @@
+
+ develop
+
+ true
+
+
+
+ aliyun-repos
+ https://maven.aliyun.com/repository/public/
+
+ false
+
+
+ true
+
+
+
+
+
+ aliyun-plugin
+ https://maven.aliyun.com/nexus/content/groups/public/
+
+ false
+
+
+
+
release