diff --git a/.github/workflows/maven-develop.yml b/.github/workflows/maven-develop.yml index e22a87e3..233fbc52 100644 --- a/.github/workflows/maven-develop.yml +++ b/.github/workflows/maven-develop.yml @@ -27,12 +27,14 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: java-version: 11 server-id: ossrh + distribution: adopt server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD + gpg-private-key: ${{ secrets.GPG_SECRET_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE - name: Publish package to maven central run: mvn --batch-mode clean deploy -P central-deploy -DskipTests=true @@ -40,4 +42,5 @@ jobs: MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }} MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + diff --git a/.github/workflows/maven-feature-hotfix.yml b/.github/workflows/maven-feature-hotfix.yml index 7af5e9cb..27cc560f 100644 --- a/.github/workflows/maven-feature-hotfix.yml +++ b/.github/workflows/maven-feature-hotfix.yml @@ -20,27 +20,3 @@ jobs: - uses: actions/checkout@v2 - name: Build with Maven run: mvn clean install - deploy: - needs: build - runs-on: ubuntu-latest - strategy: - matrix: - java: [ 11 ] - steps: - - uses: actions/checkout@v2 - - name: Set up JDK - uses: actions/setup-java@v2 - with: - java-version: 11 - server-id: ossrh - distribution: adopt - server-username: MAVEN_USERNAME - server-password: MAVEN_PASSWORD - gpg-private-key: ${{ secrets.GPG_SECRET_KEY }} - gpg-passphrase: MAVEN_GPG_PASSPHRASE - - name: Publish package to maven central - run: mvn --batch-mode clean deploy -P central-deploy -DskipTests=true --update-snapshots -Prelease - env: - MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} - MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} \ No newline at end of file diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 84e71ede..09ad2f0a 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -27,12 +27,14 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: java-version: 11 server-id: ossrh + distribution: adopt server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD + gpg-private-key: ${{ secrets.GPG_SECRET_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE - name: Publish package to maven central run: mvn --batch-mode clean deploy -P central-deploy -DskipTests=true --update-snapshots -Prelease diff --git a/pom.xml b/pom.xml index 4f10b5fc..9df74eaf 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.channelape shopify-sdk - 2.4.1 + 2.4.3 Shopify SDK Java SDK for Shopify REST API.