diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index be8323fb..1b2085c3 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -7,9 +7,10 @@ name: Java CI with Maven on: push: - branches: [ main, master ] + + branches: [ main ] pull_request: - branches: [ main, master ] + branches: [ main] jobs: build: @@ -17,7 +18,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [ '8' ] + java: [ '8', '11', '17' ] steps: - uses: actions/checkout@v2 - name: Set up JDK diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..aad294f3 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,40 @@ +name: Java Package Publishing +on: + workflow_dispatch: + inputs: + version: + description: 'Enter the new version for the package' + required: true +jobs: + build: + name: Build Reseller API + runs-on: ubuntu-latest + strategy: + matrix: + java: ['17'] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + + - name: Update Version + run: | + NEW_VERSION="${{ github.event.inputs.version }}" + mvn versions:set -DnewVersion=${NEW_VERSION} + git config --global user.email ${{secrets.ADMIN_EMAIL}} + git config --global user.name ${{secrets.ORG_NAME}} + git add . + git commit -m "Bump version to ${{ github.event.inputs.version }}" + git push https://${{secrets.WORKFLOW_TOKEN}}@github.com/ingrammicro-xvantage/xi-sdk-resellers-java main + + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml + + - name: Publish Package + run: mvn --batch-mode clean deploy + env: + GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN}} diff --git a/README.md b/README.md index 1e7c51e6..bf6fdc9d 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Add this dependency to your project's POM: xi.sdk.resellers xi.sdk.resellers - 6.0 + 1.0.0 compile ``` @@ -513,6 +513,14 @@ Authentication schemes defined for the API: It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues. ## Author +-[Ingram Micro Xvantage](https://github.com/ingrammicro-xvantage) + +## Contact + +For any inquiries or support, please feel free to contact us at: + +- Email: [xi_support@ingrammicro.com](xi_support@ingrammicro.com) + diff --git a/pom.xml b/pom.xml index ae52a0aa..62876d61 100644 --- a/pom.xml +++ b/pom.xml @@ -5,29 +5,36 @@ xi.sdk.resellers jar xi.sdk.resellers - 6.0 - https://github.com/openapitools/openapi-generator - OpenAPI Java + 1.0.0 + https://github.com/ingrammicro-xvantage/xi-sdk-resellers-java + + + github + GitHub Packages + https://maven.pkg.github.com/ingrammicro-xvantage/xi-sdk-resellers-java + + + Ingram Micro - Xvantage Integration (XI) Java Server-side SDK. - scm:git:git@github.com:openapitools/openapi-generator.git - scm:git:git@github.com:openapitools/openapi-generator.git - https://github.com/openapitools/openapi-generator + scm:git:git@github.com:ingrammicro-xvantage/xi-sdk-resellers-java.git + scm:git:git@github.com:ingrammicro-xvantage/xi-sdk-resellers-java.git + https://github.com/ingrammicro-xvantage/xi-sdk-resellers-java - Unlicense - http://unlicense.org + MIT + https://github.com/ingrammicro-xvantage/xi-sdk-resellers-java/blob/main/LICENSE repo - OpenAPI-Generator Contributors - team@openapitools.org - OpenAPITools.org - http://openapitools.org + Ingram Micro Xvantage Intergration(XI) + xi_support@ingrammicro.com + Ingram Micro + https://developer.ingrammicro.com/reseller