diff --git a/.github/workflows/java-sdk.yml b/.github/workflows/java-sdk.yml new file mode 100644 index 0000000..948bbe2 --- /dev/null +++ b/.github/workflows/java-sdk.yml @@ -0,0 +1,30 @@ +name: Release Java SDK + +on: + workflow_dispatch: + inputs: + version: + description: "The version of the SDKs that you would like to release" + required: true + type: string + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v3 + + - name: Setup node + uses: actions/setup-node@v4 + + - name: Download Fern + run: npm install -g fern-api + + - name: Release SDKs + env: + FERN_TOKEN: ${{ secrets.FERN_TOKEN }} + MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} + run: | + fern generate --group java-sdk --version ${{ inputs.version }} --log-level debug diff --git a/fern/fern.config.json b/fern/fern.config.json index 1b60f11..1020812 100644 --- a/fern/fern.config.json +++ b/fern/fern.config.json @@ -1,4 +1,4 @@ { "organization": "intercom", - "version": "0.56.19" + "version": "0.57.17" } \ No newline at end of file diff --git a/fern/generators.yml b/fern/generators.yml index 9bb48ee..a210bd4 100644 --- a/fern/generators.yml +++ b/fern/generators.yml @@ -39,17 +39,17 @@ groups: java-sdk: generators: - name: fernapi/fern-java-sdk - version: 2.25.0 - # output: - # location: maven - # coordinate: com.square:square-java - # username: ${MAVEN_USERNAME} - # password: ${MAVEN_PASSWORD} + version: 2.32.4 + output: + location: maven + coordinate: io.intercom:intercom-java + username: ${MAVEN_USERNAME} + password: ${MAVEN_PASSWORD} github: - repository: fern-demo/intercom-java-sdk - branch: gettin-tests-to-work - mode: push + repository: intercom/intercom-java + mode: pull-request config: enable-inline-types: true client-class-name: Intercom inline-path-parameters: true + # enable-forward-compatible-enums: true diff --git a/fern/openapi-overrides.yml b/fern/openapi-overrides.yml index 3363cfe..f4d0cc1 100644 --- a/fern/openapi-overrides.yml +++ b/fern/openapi-overrides.yml @@ -1388,6 +1388,11 @@ components: format: uri description: An image URL containing the avatar of a contact. example: https://example.org/128Wash.jpg + content_source: + properties: + content_type: + enum: + - custom_answer create_article_request: properties: parent_type: