Skip to content

Commit fc8c894

Browse files
committed
发布 1.4.2,增加 GitHub Actions 配置
1 parent 4e4fb05 commit fc8c894

File tree

9 files changed

+82
-15
lines changed

9 files changed

+82
-15
lines changed

.github/workflows/pull-request.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Maven verify
2+
on:
3+
pull_request:
4+
types: [ opened, reopened, edited ]
5+
jobs:
6+
mvn_verify:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- name: Set up Maven Central Repository
11+
uses: actions/setup-java@v2
12+
with:
13+
java-version: '8'
14+
distribution: 'adopt'
15+
- name: Run the Maven verify phase
16+
run: mvn --batch-mode --update-snapshots -P dev verify

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish package to the Maven Central Repository
2+
on:
3+
push:
4+
tags: [ "*" ]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- name: Set up Maven Central Repository
11+
uses: actions/setup-java@v2
12+
with:
13+
java-version: '8'
14+
distribution: 'adopt'
15+
server-id: ossrh
16+
server-username: MAVEN_USERNAME
17+
server-password: MAVEN_PASSWORD
18+
- id: install-secret-key
19+
name: Install gpg secret key
20+
run: |
21+
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
22+
gpg --list-secret-keys --keyid-format LONG
23+
- name: Publish package
24+
env:
25+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
26+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
27+
run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} -P release clean deploy

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,23 @@ Support PageHelper 5.x
99
## How to use
1010
在 pom.xml 中添加如下依赖:
1111

12-
Add the following dependency to your pom.xml:
12+
Add the following dependency to your pom.xml:
13+
1314
```xml
15+
1416
<dependency>
15-
<groupId>com.github.pagehelper</groupId>
16-
<artifactId>pagehelper-spring-boot-starter</artifactId>
17-
<version>1.4.1</version>
17+
<groupId>com.github.pagehelper</groupId>
18+
<artifactId>pagehelper-spring-boot-starter</artifactId>
19+
<version>1.4.2</version>
1820
</dependency>
1921
```
2022

23+
## v1.4.2 - 2022-04-06
24+
25+
- 升级 MyBatis 到 3.5.9
26+
- 升级 MyBatis Starter 到 2.2.2
27+
- 升级 springboot 到 2.6.6
28+
2129
## v1.4.1 - 2021-11-24
2230

2331
- 升级 springboot 到 2.6.0,兼容性修复,解决循环依赖

pagehelper-spring-boot-autoconfigure/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<parent>
3030
<groupId>com.github.pagehelper</groupId>
3131
<artifactId>pagehelper-spring-boot</artifactId>
32-
<version>1.4.1</version>
32+
<version>1.4.2</version>
3333
</parent>
3434
<artifactId>pagehelper-spring-boot-autoconfigure</artifactId>
3535
<name>pagehelper-spring-boot-autoconfigure</name>

pagehelper-spring-boot-samples/pagehelper-spring-boot-sample-annotation/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<parent>
2929
<groupId>com.github.pagehelper</groupId>
3030
<artifactId>pagehelper-spring-boot-samples</artifactId>
31-
<version>1.4.1</version>
31+
<version>1.4.2</version>
3232
</parent>
3333
<artifactId>pagehelper-spring-boot-sample-annotation</artifactId>
3434
<packaging>jar</packaging>

pagehelper-spring-boot-samples/pagehelper-spring-boot-sample-xml/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<parent>
2929
<groupId>com.github.pagehelper</groupId>
3030
<artifactId>pagehelper-spring-boot-samples</artifactId>
31-
<version>1.4.1</version>
31+
<version>1.4.2</version>
3232
</parent>
3333
<artifactId>pagehelper-spring-boot-sample-xml</artifactId>
3434
<packaging>jar</packaging>

pagehelper-spring-boot-samples/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<parent>
3030
<groupId>com.github.pagehelper</groupId>
3131
<artifactId>pagehelper-spring-boot</artifactId>
32-
<version>1.4.1</version>
32+
<version>1.4.2</version>
3333
</parent>
3434
<artifactId>pagehelper-spring-boot-samples</artifactId>
3535
<packaging>pom</packaging>

pagehelper-spring-boot-starter/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<parent>
3030
<groupId>com.github.pagehelper</groupId>
3131
<artifactId>pagehelper-spring-boot</artifactId>
32-
<version>1.4.1</version>
32+
<version>1.4.2</version>
3333
</parent>
3434
<artifactId>pagehelper-spring-boot-starter</artifactId>
3535
<name>pagehelper-spring-boot-starter</name>

pom.xml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
<groupId>com.github.pagehelper</groupId>
3131
<artifactId>pagehelper-spring-boot</artifactId>
32-
<version>1.4.1</version>
32+
<version>1.4.2</version>
3333
<packaging>pom</packaging>
3434

3535
<name>pagehelper-spring-boot</name>
@@ -68,10 +68,10 @@
6868
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
6969
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
7070

71-
<mybatis.version>3.5.7</mybatis.version>
71+
<mybatis.version>3.5.9</mybatis.version>
7272
<pagehelper.version>5.3.0</pagehelper.version>
73-
<mybatis-spring-boot.version>2.2.0</mybatis-spring-boot.version>
74-
<spring-boot.version>2.6.0</spring-boot.version>
73+
<mybatis-spring-boot.version>2.2.2</mybatis-spring-boot.version>
74+
<spring-boot.version>2.6.6</spring-boot.version>
7575
</properties>
7676

7777
<dependencyManagement>
@@ -154,16 +154,32 @@
154154
</goals>
155155
</execution>
156156
</executions>
157+
<configuration>
158+
<gpgArguments>
159+
<argument>--pinentry-mode</argument>
160+
<argument>loopback</argument>
161+
</gpgArguments>
162+
</configuration>
163+
</plugin>
164+
<plugin>
165+
<groupId>org.sonatype.plugins</groupId>
166+
<artifactId>nexus-staging-maven-plugin</artifactId>
167+
<extensions>true</extensions>
168+
<configuration>
169+
<serverId>ossrh</serverId>
170+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
171+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
172+
</configuration>
157173
</plugin>
158174
</plugins>
159175
</build>
160176
<distributionManagement>
161177
<snapshotRepository>
162-
<id>oss</id>
178+
<id>ossrh</id>
163179
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
164180
</snapshotRepository>
165181
<repository>
166-
<id>oss</id>
182+
<id>ossrh</id>
167183
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
168184
</repository>
169185
</distributionManagement>

0 commit comments

Comments
 (0)