Skip to content

Commit

Permalink
发布 1.4.2,增加 GitHub Actions 配置
Browse files Browse the repository at this point in the history
  • Loading branch information
abel533 committed Apr 5, 2022
1 parent 4e4fb05 commit fc8c894
Show file tree
Hide file tree
Showing 9 changed files with 82 additions and 15 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Maven verify
on:
pull_request:
types: [ opened, reopened, edited ]
jobs:
mvn_verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Maven Central Repository
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
- name: Run the Maven verify phase
run: mvn --batch-mode --update-snapshots -P dev verify
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish package to the Maven Central Repository
on:
push:
tags: [ "*" ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Maven Central Repository
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- id: install-secret-key
name: Install gpg secret key
run: |
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
- name: Publish package
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} -P release clean deploy
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,23 @@ Support PageHelper 5.x
## How to use
在 pom.xml 中添加如下依赖:

Add the following dependency to your pom.xml:
Add the following dependency to your pom.xml:

```xml

<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.4.1</version>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.4.2</version>
</dependency>
```

## v1.4.2 - 2022-04-06

- 升级 MyBatis 到 3.5.9
- 升级 MyBatis Starter 到 2.2.2
- 升级 springboot 到 2.6.6

## v1.4.1 - 2021-11-24

- 升级 springboot 到 2.6.0,兼容性修复,解决循环依赖
Expand Down
2 changes: 1 addition & 1 deletion pagehelper-spring-boot-autoconfigure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<parent>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot</artifactId>
<version>1.4.1</version>
<version>1.4.2</version>
</parent>
<artifactId>pagehelper-spring-boot-autoconfigure</artifactId>
<name>pagehelper-spring-boot-autoconfigure</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<parent>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-samples</artifactId>
<version>1.4.1</version>
<version>1.4.2</version>
</parent>
<artifactId>pagehelper-spring-boot-sample-annotation</artifactId>
<packaging>jar</packaging>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<parent>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-samples</artifactId>
<version>1.4.1</version>
<version>1.4.2</version>
</parent>
<artifactId>pagehelper-spring-boot-sample-xml</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion pagehelper-spring-boot-samples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<parent>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot</artifactId>
<version>1.4.1</version>
<version>1.4.2</version>
</parent>
<artifactId>pagehelper-spring-boot-samples</artifactId>
<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion pagehelper-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<parent>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot</artifactId>
<version>1.4.1</version>
<version>1.4.2</version>
</parent>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<name>pagehelper-spring-boot-starter</name>
Expand Down
28 changes: 22 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot</artifactId>
<version>1.4.1</version>
<version>1.4.2</version>
<packaging>pom</packaging>

<name>pagehelper-spring-boot</name>
Expand Down Expand Up @@ -68,10 +68,10 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<mybatis.version>3.5.7</mybatis.version>
<mybatis.version>3.5.9</mybatis.version>
<pagehelper.version>5.3.0</pagehelper.version>
<mybatis-spring-boot.version>2.2.0</mybatis-spring-boot.version>
<spring-boot.version>2.6.0</spring-boot.version>
<mybatis-spring-boot.version>2.2.2</mybatis-spring-boot.version>
<spring-boot.version>2.6.6</spring-boot.version>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -154,16 +154,32 @@
</goals>
</execution>
</executions>
<configuration>
<gpgArguments>
<argument>--pinentry-mode</argument>
<argument>loopback</argument>
</gpgArguments>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
<distributionManagement>
<snapshotRepository>
<id>oss</id>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
<repository>
<id>oss</id>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
Expand Down

0 comments on commit fc8c894

Please sign in to comment.