From 4368e57950cd5e09d942a963f304044c777a33b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E6=A2=A6?= <1101766085@qq.com> Date: Wed, 12 Jun 2024 15:11:45 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E4=BC=98=E5=8C=96=20github=20acti?= =?UTF-8?q?on?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitee/ISSUE_TEMPLATE/issue.yml | 7 ++++++ .github/workflows/publish-snapshot.yml | 3 +-- .github/workflows/test-and-build.yml | 4 ++-- pom.xml | 31 ++++++++++++++++---------- 4 files changed, 29 insertions(+), 16 deletions(-) diff --git a/.gitee/ISSUE_TEMPLATE/issue.yml b/.gitee/ISSUE_TEMPLATE/issue.yml index 39d2e5c7..faa4c578 100644 --- a/.gitee/ISSUE_TEMPLATE/issue.yml +++ b/.gitee/ISSUE_TEMPLATE/issue.yml @@ -26,6 +26,13 @@ body: - "其他" validations: required: true + - type: input + id: usage-scenarios + attributes: + label: 使用场景 + description: 简述使用场景 + validations: + required: true - type: textarea id: desired-solution attributes: diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index b1fa0fef..81a63805 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -24,8 +24,7 @@ jobs: 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 -Psnapshot,!develop -pl mica-mqtt-codec,mica-mqtt-common,mica-mqtt-client,mica-mqtt-server,starter/mica-mqtt-client-spring-boot-starter,starter/mica-mqtt-server-spring-boot-starter,starter/jfinal-mica-mqtt-client,starter/jfinal-mica-mqtt-server env: MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} diff --git a/.github/workflows/test-and-build.yml b/.github/workflows/test-and-build.yml index 7dd31f7f..d36565c0 100644 --- a/.github/workflows/test-and-build.yml +++ b/.github/workflows/test-and-build.yml @@ -14,7 +14,7 @@ jobs: cache: 'maven' java-version: 8 - name: Build with Maven - run: mvn package + run: mvn package -P !develop buildOnJava21: name: build on java21 runs-on: ubuntu-latest @@ -27,4 +27,4 @@ jobs: cache: 'maven' java-version: 21 - name: Build with Maven - run: mvn package + run: mvn package -P !develop diff --git a/pom.xml b/pom.xml index 2fc19bb2..596c9d0b 100644 --- a/pom.xml +++ b/pom.xml @@ -137,18 +137,6 @@ - - - aliyun - aliyun - https://maven.aliyun.com/repository/public - - false - - - true - - sonatype-nexus-snapshots @@ -236,6 +224,25 @@ + + develop + + true + + + + aliyun + aliyun + https://maven.aliyun.com/repository/public/ + + false + + + true + + + + snapshot