From 5b593b2618c21bf79a0975fee6cb39bb0a1f358d Mon Sep 17 00:00:00 2001 From: mhostetter Date: Mon, 14 Nov 2022 19:17:00 -0500 Subject: [PATCH] Fix CI push to `gh-pages` --- .github/workflows/docs.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 8b775f79f..241e47061 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -129,6 +129,10 @@ jobs: versions = sorted((item.name for item in cwd.iterdir() if item.is_dir() and not item.name.startswith(".")), reverse=True) print(versions) + # Remove "latest" from list of versions + versions.remove("latest") + os.system("rm latest") + list_of_dicts = [] latest = None for version in versions: @@ -146,9 +150,8 @@ jobs: with (cwd / "versions.json").open("w") as f: json.dump(list_of_dicts, f, indent=4) - - name: Publish to GitHub pages - uses: peaceiris/actions-gh-pages@v3 + - run: git status + + - uses: stefanzweifel/git-auto-commit-action@v4 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: . - keep_files: true + commit_message: Deploy ${{ github.sha }}