From 21632d94fe514590a60e18144c0ed41ec712426f Mon Sep 17 00:00:00 2001 From: Giovanni Liva Date: Thu, 2 Nov 2023 08:58:04 +0100 Subject: [PATCH] fix: release docs action Signed-off-by: Giovanni Liva --- .github/workflows/release-docs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-docs.yml b/.github/workflows/release-docs.yml index 446f790..46149d8 100644 --- a/.github/workflows/release-docs.yml +++ b/.github/workflows/release-docs.yml @@ -64,7 +64,7 @@ jobs: - name: Move old latest release documentation folder if: ${{ steps.folder.outputs.migrate }} - run: mv -fv "${{ inputs.page_dir }}${{ inputs.docs_dir }}/content/en/docs/." "${{ inputs.page_dir }}${{ inputs.docs_dir }}/content/en/${{ steps.folder.outputs.migrate }}" + run: mv -fv "${{ inputs.page_dir }}${{ inputs.docs_dir }}/content/en/docs" "${{ inputs.page_dir }}${{ inputs.docs_dir }}/content/en/${{ steps.folder.outputs.migrate }}" - name: Copy configuration if: ${{ steps.folder.outputs.latest }} @@ -73,7 +73,7 @@ jobs: - name: Copy documentation folder run: | - cp -R ./docs/content/en/docs/. "${{ inputs.page_dir }}${{ inputs.docs_dir }}/content/en/${{ steps.folder.outputs.name}}" + cp -R ./docs/content/en/docs "${{ inputs.page_dir }}${{ inputs.docs_dir }}/content/en/${{ steps.folder.outputs.name}}" echo "${{ inputs.tag_name }}" > "${{ inputs.page_dir }}${{ inputs.docs_dir }}/content/en/${{ steps.folder.outputs.name}}/version" sed -i 's/currentversion: main/currentversion: ${{ inputs.tag_name }}/g' "${{ inputs.page_dir }}${{ inputs.docs_dir }}/content/en/${{ steps.folder.outputs.name}}/_index.md"