diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 932e0dc..f9bd6a3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,18 +7,20 @@ on: jobs: deploy: runs-on: ubuntu-latest + permissions: + contents: read steps: - - uses: actions/checkout@v3 - - name: set fake tty # https://github.com/actions/runner/issues/241 + - uses: actions/checkout@v4 + - name: set fake tty shell: 'script -q -e -c "bash {0}"' run: | export GPG_TTY=$(tty) - name: Set up Apache Maven Central - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: - distribution: 'adopt' + distribution: 'temurin' java-version: '11' - server-id: sonatype-nexus-staging + server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_CENTRAL_TOKEN gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} diff --git a/pom.xml b/pom.xml index 5ed1b9a..25403a2 100755 --- a/pom.xml +++ b/pom.xml @@ -35,11 +35,22 @@ Payjp https://pay.jp - - org.sonatype.oss - oss-parent - 7 - + + + MIT License + https://opensource.org/licenses/MIT + repo + + + + + payjp + PAY.JP + support@pay.jp + PAY, Inc. + https://pay.jp + + scm:git:git@github.com:payjp/payjp-java.git scm:git:git@github.com:payjp/payjp-java.git @@ -121,22 +132,15 @@ - org.sonatype.plugins - 1.6.4 - nexus-staging-maven-plugin - - - default-deploy - deploy - - deploy - - - - - sonatype-nexus-staging - https://oss.sonatype.org/ - + org.sonatype.central + central-publishing-maven-plugin + 0.10.0 + true + + central + true + published +