Skip to content

Commit

Permalink
Maintenance: Minor CI changes and pom file changes (#122)
Browse files Browse the repository at this point in the history
Co-authored-by: ludovicsteinbach <[email protected]>
  • Loading branch information
ludovicsteinbach and ludovicsteinbach authored Jan 11, 2024
1 parent 7628f1e commit d519009
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test_library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion .github/workflows/generate_library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down
6 changes: 3 additions & 3 deletions ansys-grantami-serverapi-openapi/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions ansys-grantami-serverapi-openapi/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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. <[email protected]>"]
maintainers = ["ANSYS, Inc. <[email protected]>"]
homepage = "https://github.com/ansys/grantami-serverapi-openapi"
documentation = "https://grantami.docs.pyansys.com"
readme = "README.md"
keywords = ["Ansys", "OpenAPI"]
classifiers = [
Expand All @@ -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"

Expand Down
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<maven-plugin-version>1.0.0</maven-plugin-version>
<base-package-version>0.1.0</base-package-version>
<yaml-filename>server-api.json</yaml-filename>
<swagger-template-version>2.0.5-RC0-SNAPSHOT</swagger-template-version>
<swagger-template-version>2.0.6-SNAPSHOT</swagger-template-version>
<package-name>ansys-grantami-serverapi-openapi</package-name>
<package-import-path>ansys.grantami.serverapi_openapi</package-import-path>
<package-description>Autogenerated client library for the Granta MI Server API.</package-description>
Expand Down Expand Up @@ -42,6 +42,7 @@
<pythonicPackageName>ansys-grantami-recordlists</pythonicPackageName>
<pythonicPackageUrl>https://github.com/ansys/grantami-recordlists</pythonicPackageUrl>
<homepageUrl>https://github.com/ansys/grantami-serverapi-openapi</homepageUrl>
<documentationUrl>https://grantami.docs.pyansys.com</documentationUrl>
<packageVersion>${project.version}</packageVersion>
<buildNumber>${build-id}</buildNumber>
<isReleaseBuild>${is-release}</isReleaseBuild>
Expand Down

0 comments on commit d519009

Please sign in to comment.