Skip to content

Commit

Permalink
Merge pull request #1599 from SciCatProject/master
Browse files Browse the repository at this point in the history
Release 6-1-2025
  • Loading branch information
Junjiequan authored Jan 7, 2025
2 parents cf00c77 + ed69e40 commit 11783c5
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 74 deletions.
5 changes: 0 additions & 5 deletions .github/openapi/python-pydantic-v1-config.json

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/release-and-publish-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:
- start-backend-export-swagger
strategy:
matrix:
generator: [python, python-pydantic-v1, typescript-angular]
generator: [python, typescript-angular, typescript-fetch]

steps:
- name: Checkout repository
Expand All @@ -154,7 +154,7 @@ jobs:
-o ./sdk/${{ matrix.generator }} $(
if [ "${{ matrix.generator }}" == "typescript-angular" ] || [ "${{ matrix.generator }}" == "typescript-fetch" ]; then
echo "--additional-properties=npmVersion=${{ needs.build-release.outputs.new_tag}}";
elif [ "${{ matrix.generator }}" == "python" ] || [ "${{ matrix.generator }}" == "python-pydantic-v1" ]; then
elif [ "${{ matrix.generator }}" == "python" ]; then
echo "--additional-properties=packageVersion=${{ needs.build-release.outputs.new_tag}}";
fi
)
Expand Down Expand Up @@ -208,10 +208,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
sdk_type: [python, python-pydantic-v1]
sdk_type: [python]
environment:
name: ${{ matrix.sdk_type }}-sdk-package
url: ${{ matrix.sdk_type == 'python' && 'https://pypi.org/project/scicat-sdk-py' || 'https://pypi.org/project/scicat-sdk-pydantic' }}
url: "https://pypi.org/project/scicat-sdk-py"
permissions:
id-token: write

Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/upload-sdk-artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

env:
NODE_VERSION: 20.x
SDK_VERSION: latest
SDK_VERSION: 0.0.1

jobs:
start-backend-and-upload-swagger-schema:
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
- start-backend-and-upload-swagger-schema
strategy:
matrix:
generator: [python, typescript-angular, python-pydantic-v1]
generator: [python, typescript-angular, typescript-fetch]

steps:
- name: Checkout repository
Expand All @@ -67,12 +67,10 @@ jobs:
config-file: .github/openapi/${{ matrix.generator }}-config.json
command-args: |
-o ./sdk/${{ matrix.generator }} $(
if [ "${{ matrix.generator }}" == "typescript-angular" ]; then
if [ "${{ matrix.generator }}" == "typescript-angular" ] || [ "${{ matrix.generator }}" == "typescript-fetch" ]; then
echo "--additional-properties=npmVersion=${{env.SDK_VERSION}}";
elif [ "${{ matrix.generator }}" == "python" ]; then
echo "--additional-properties=packageVersion=${{env.SDK_VERSION}}";
elif [ "${{ matrix.generator }}" == "python-pydantic-v1" ]; then
echo "--additional-properties=packageVersion=${{env.SDK_VERSION}}";
fi
)
Expand Down
120 changes: 60 additions & 60 deletions package-lock.json

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

0 comments on commit 11783c5

Please sign in to comment.