ci: ensure dist exists before client gen

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-03-16 23:56:54 +01:00
parent 9902a11621
commit eb884f7ef7
1 changed files with 1 additions and 0 deletions

View File

@ -280,6 +280,7 @@ stages:
inputs:
script: |
docker run --rm -v $(pwd):/local openapitools/openapi-generator-cli generate -i /local/swagger.yaml -g typescript-fetch -o /local/web/api --additional-properties=typescriptThreePlus=true,supportsES6=true,npmName=authentik-api,npmVersion=1.0.0
sudo chmod 777 -R api/
cd web
npm i
npm run build