From 1c025336415a88e4335607cf6c3a9172bbeb9a16 Mon Sep 17 00:00:00 2001 From: David Hewitt <1939362+davidhewitt@users.noreply.github.com> Date: Fri, 19 Aug 2022 15:54:19 +0100 Subject: [PATCH] gh-pages: don't publish whole target directory --- .github/workflows/gh-pages.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 481a74f5d1a..035c81347a1 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -54,9 +54,8 @@ jobs: - name: Build the doc run: | cargo xtask doc + mv target/doc target/guide/doc echo "" > target/guide/doc/index.html - env: - CARGO_TARGET_DIR: target/guide - name: Deploy docs and the guide if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}