diff --git a/.github/workflows/gh-pages.yaml b/.github/workflows/gh-pages.yaml index 3c513235c..8f490f8a7 100644 --- a/.github/workflows/gh-pages.yaml +++ b/.github/workflows/gh-pages.yaml @@ -27,10 +27,10 @@ jobs: run: cargo doc --no-deps - name: Deploy run: | + mkdir _site git clean -f docs - echo "" > target/doc/index.html - echo "copying documentation to doc..." - cp -r target/doc ./docs + echo "" > _site/index.html + run: cp -r target/doc/* ./_site deploy: needs: build permissions: @@ -45,8 +45,6 @@ jobs: uses: actions/configure-pages@v3 - name: Upload artifact uses: actions/upload-pages-artifact@v2 - with: - path: "." - name: Deploy to GitHub pages id: deployment uses: actions/deploy-pages@v2