Skip to content

Commit

Permalink
Fix CI push to gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mhostetter committed Nov 15, 2022
1 parent d26b373 commit 5b593b2
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}

0 comments on commit 5b593b2

Please sign in to comment.