diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 6e695c7..5a8a738 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -31,9 +31,8 @@ jobs: arguments: dokkaHtmlMultiModule - name: Reorder file structure run: | - shopt -s extglob - rm -rf !(build) - mv build/* . + find ./ -mindepth 1 ! -regex '^./docs\(/.*\)?' -delete + mv docs/* . - name: Build Writerside docs using Docker uses: JetBrains/writerside-github-action@v3 env: