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 cf519f48e7
1 changed files with 1 additions and 0 deletions

View File

@ -281,6 +281,7 @@ stages:
script: | 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 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
cd web cd web
sudo chmod 777 -R api/
npm i npm i
npm run build npm run build
- task: CmdLine@2 - task: CmdLine@2