Added generation for dart

This commit is contained in:
Alex Tran 2022-10-06 17:23:05 -05:00
parent c4e32ce159
commit c3d7dda61f
No known key found for this signature in database
GPG Key ID: E4954BC787B85C8A

View File

@ -27,7 +27,7 @@ jobs:
openapi-file: server/immich-openapi-specs.json
# Do something with the generated client (likely publishing it somewhere)
- name: Do something with the client
- name: Push to typescript repo
run: |
git config --global init.defaultBranch main
git config --global pull.rebase false
@ -40,3 +40,18 @@ jobs:
git remote add origin https://immich-app:"${{ secrets.GH_TOKEN }}"@github.com/immich-app/immich-sdk-typescript-axios.git
git pull origin main --allow-unrelated-histories
git push origin main 2>&1 | grep -v 'To https'
- name: Generate Dart Client
uses: openapi-generators/openapitools-generator-action@v1
with:
generator: dart
generator-tag: v6.2.0
openapi-file: server/immich-openapi-specs.json
- name: Push to Dart repo
run: |
git config --global init.defaultBranch main
git config --global pull.rebase false
git config --global user.email "alex.tran1502@gmail.com"
git config --global user.name "Alex Tran"
cd dart-client && ls