From 48b92712cadc50c2425d117c2c8c4cbfa2da83b1 Mon Sep 17 00:00:00 2001 From: Slavko Rihtaric Date: Fri, 12 Jul 2024 12:37:48 +0200 Subject: [PATCH] Docs to root dir so README links work --- .github/workflows/generate_sdk_code.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/generate_sdk_code.yml b/.github/workflows/generate_sdk_code.yml index cddc517..43f5edf 100644 --- a/.github/workflows/generate_sdk_code.yml +++ b/.github/workflows/generate_sdk_code.yml @@ -60,7 +60,9 @@ jobs: run-id: ${{ github.event.client_payload.run_id }} - name: Remove old SDK - run: rm -rf src/* + run: | + rm -rf src/* + rm -rf docs/* - name: Set API and SDK versions run: | @@ -77,6 +79,7 @@ jobs: java --version java -jar ${{ runner.temp }}/openapi-generator-cli.jar generate -i ${{ runner.temp }}/openapispec/openapi.yml -g csharp -o ./src -c ${{ runner.temp }}/${{ env.CONFIG_FILE }} --skip-validate-spec cp ./src/README.md ./README.md + cp -r ./src/docs ./docs - name: Create Pull Request id: cpr