diff --git a/.github/workflows/build_and_test_library.yml b/.github/workflows/build_and_test_library.yml index 968003e4..f3ffcb53 100644 --- a/.github/workflows/build_and_test_library.yml +++ b/.github/workflows/build_and_test_library.yml @@ -125,4 +125,4 @@ jobs: - name: "Release to GitHub" uses: softprops/action-gh-release@v1 with: - files: ~/dist/*.whl + files: ~/dist/ansys-grantami-serverapi-openapi-wheel/*.whl diff --git a/.github/workflows/generate_library.yml b/.github/workflows/generate_library.yml index 7cbade5c..0196a270 100644 --- a/.github/workflows/generate_library.yml +++ b/.github/workflows/generate_library.yml @@ -14,6 +14,8 @@ jobs: name: "Generate and update client library" runs-on: ubuntu-latest if: ${{ github.actor != 'pyansys-bot[bot]' }} + env: + IS_RELEASE_BRANCH: ${{ startsWith(github.ref_name, 'release/') }} steps: - name: "Get Bot Application Token" id: get_workflow_token @@ -40,7 +42,7 @@ jobs: working-directory: ansys-grantami-serverapi-openapi - name: "Build client library" - run: mvn -Dbuild-id=${{ github.run_number }} -s .m2/settings.xml compile + run: mvn -Dbuild-id=${{ github.run_number }} ${{ env.IS_RELEASE_BRANCH == 'true' && '-Dis-release' || '' }} -s .m2/settings.xml compile env: MAVEN_OPTS: "-Dlog4j2.formatMsgNoLookups=true" SERVER_USERNAME: ${{ secrets.REPO_USER }} diff --git a/ansys-grantami-serverapi-openapi/poetry.lock b/ansys-grantami-serverapi-openapi/poetry.lock index d27a6861..7e56f50f 100644 --- a/ansys-grantami-serverapi-openapi/poetry.lock +++ b/ansys-grantami-serverapi-openapi/poetry.lock @@ -2,12 +2,12 @@ [[package]] name = "ansys-openapi-common" -version = "1.4.0rc0" +version = "1.4.0" description = "Provides a helper to create sessions for use with Ansys OpenAPI clients." optional = false python-versions = ">=3.9,<4.0" files = [ - {file = "ansys_openapi_common-1.4.0rc0-py3-none-any.whl", hash = "sha256:9328b8b15384dcf85c0c00ab6013fe431bdbfede2c7bccaa0ee43a7f8c76615b"}, + {file = "ansys_openapi_common-1.4.0-py3-none-any.whl", hash = "sha256:8ace675366cf78a5c940f67bca16194ef56cb00ae68e5a5183a96d5757861f12"}, ] [package.dependencies] @@ -584,4 +584,4 @@ zstd = ["zstandard (>=0.18.0)"] [metadata] lock-version = "2.0" python-versions = "^3.9.0" -content-hash = "d865916037f59ddcc021470f437e400f7981c5089a3e1627a953849689f2bf05" +content-hash = "e8fcedca6b1f8ac3346909cc479a7930bca7b34719638a5c478a209cfbd13045" diff --git a/ansys-grantami-serverapi-openapi/pyproject.toml b/ansys-grantami-serverapi-openapi/pyproject.toml index f8817674..d8201666 100644 --- a/ansys-grantami-serverapi-openapi/pyproject.toml +++ b/ansys-grantami-serverapi-openapi/pyproject.toml @@ -5,11 +5,12 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "ansys-grantami-serverapi-openapi" description = "Autogenerated client library for the Granta MI Server API." -version = "2.0.0.dev150" +version = "2.0.0.dev157" license = "MIT" authors = ["ANSYS, Inc. "] maintainers = ["ANSYS, Inc. "] homepage = "https://github.com/ansys/grantami-serverapi-openapi" +documentation = "https://grantami.docs.pyansys.com" readme = "README.md" keywords = ["Ansys", "OpenAPI"] classifiers = [ @@ -30,7 +31,7 @@ packages = [ [tool.poetry.dependencies] python = "^3.9.0" -ansys-openapi-common = "^1.4.0rc0" +ansys-openapi-common = "^1.4.0" requests = "^2.26.0" python-dateutil = "^2.8.2" diff --git a/pom.xml b/pom.xml index a99a0019..491c3de3 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ 1.0.0 0.1.0 server-api.json - 2.0.5-RC0-SNAPSHOT + 2.0.6-SNAPSHOT ansys-grantami-serverapi-openapi ansys.grantami.serverapi_openapi Autogenerated client library for the Granta MI Server API. @@ -42,6 +42,7 @@ ansys-grantami-recordlists https://github.com/ansys/grantami-recordlists https://github.com/ansys/grantami-serverapi-openapi + https://grantami.docs.pyansys.com ${project.version} ${build-id} ${is-release}