From 34749a9efb595d38a256f28766fe7d166e324b15 Mon Sep 17 00:00:00 2001 From: andyoung <1218853253@qq.com> Date: Fri, 1 Nov 2024 23:43:03 +0800 Subject: [PATCH 1/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7b120a0..a597cdd 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ maven引入 io.github.admin4j http - 0.9.1 + 0.9.2 ``` From 18abd6114faee8a6db788aa9be2ccb1106106c8c Mon Sep 17 00:00:00 2001 From: QIK7 <15757856602@163.com> Date: Tue, 3 Jun 2025 23:26:03 +0800 Subject: [PATCH 2/2] feat(HttpRequest): CI --- .github/workflows/maven-publish-parent.yml | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/maven-publish-parent.yml diff --git a/.github/workflows/maven-publish-parent.yml b/.github/workflows/maven-publish-parent.yml new file mode 100644 index 0000000..428722a --- /dev/null +++ b/.github/workflows/maven-publish-parent.yml @@ -0,0 +1,47 @@ +# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created +# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path + +name: Maven deploy parent + +on: + release: + types: [ created ] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 8 + uses: actions/setup-java@v3 + with: + java-version: 8 + distribution: temurin + server-id: ossrh + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + gpg-passphrase: MAVEN_GPG_PASSPHRASE + + - name: Build with Maven + run: mvn -B clean package -Dmaven.test.skip=true --file pom.xml + + - name: Set up Apache Maven Central + run: mvn deploy -N -Dmaven.test.skip=true -Possrh --file pom.xml + env: + MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSWORD }} + MAVEN_USERNAME: ${{ secrets.OSSRH_USER }} + MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + GITHUB_TOKEN: ${{ github.token }} +# GPG_PRIVATE_KEY: + +# -----BEGIN PGP PRIVATE KEY BLOCK----- +# *** +# -----END PGP PRIVATE KEY BLOCK----- + +# GPG_PASSWORD GPG_PRIVATE_KEY 的密码