diff --git a/.github/workflows/build_mkdocs.yml b/.github/workflows/build_mkdocs.yml index 440aa28a..62b35884 100644 --- a/.github/workflows/build_mkdocs.yml +++ b/.github/workflows/build_mkdocs.yml @@ -45,6 +45,9 @@ jobs: git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com" + - name: Stash changes + run: git stash --include-untracked + - name: Pull latest gh-pages run: | git fetch origin gh-pages @@ -52,6 +55,9 @@ jobs: git pull origin gh-pages git checkout - + - name: Apply stash + run: git stash pop + - name: Deploy to GitHub Pages run: mkdocs gh-deploy --force env: