mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	added github action file'
This commit is contained in:
		
							
								
								
									
										31
									
								
								.github/workflows/openapi-generator.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								.github/workflows/openapi-generator.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,31 @@
 | 
				
			|||||||
 | 
					name: Generate OpenAPI SDK
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  workflow_dispatch:
 | 
				
			||||||
 | 
					  push:
 | 
				
			||||||
 | 
					    branches: [main]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  generate-typescript-axios:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    name: Example
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      # Checkout your code
 | 
				
			||||||
 | 
					      - name: Checkout
 | 
				
			||||||
 | 
					        uses: actions/checkout@v2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      # Generate your OpenAPI document (if you don't write it manually)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      # Use the action to generate a client package
 | 
				
			||||||
 | 
					      # This uses the default path for the openapi document and thus assumes there is an openapi.json in the current workspace.
 | 
				
			||||||
 | 
					      - name: Generate Typescript Axios Client
 | 
				
			||||||
 | 
					        uses: openapi-generators/openapitools-generator-action@v1
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          generator: typescript-axios
 | 
				
			||||||
 | 
					          generator-tag: v6.2.0
 | 
				
			||||||
 | 
					          openapi-file: server/immich-openapi-specs.json
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      # Do something with the generated client (likely publishing it somewhere)
 | 
				
			||||||
 | 
					      - name: Do something with the client
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          cd typescript-axios-client && ls
 | 
				
			||||||
		Reference in New Issue
	
	Block a user