From 5bddcd08526f4135de06a675c899d64d461ea836 Mon Sep 17 00:00:00 2001 From: Jesper Friis Date: Thu, 7 Nov 2024 00:10:48 +0100 Subject: [PATCH] Show readme file on main page on gh-pages --- .github/workflows/cd_update_pages.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd_update_pages.yml b/.github/workflows/cd_update_pages.yml index d57744d..1f052cf 100644 --- a/.github/workflows/cd_update_pages.yml +++ b/.github/workflows/cd_update_pages.yml @@ -71,11 +71,13 @@ jobs: public/chameo-inferred.ttl \ build/chameo.rst sphinx-build "build/" "public/" + # Remove the generated index.html and instead show the readme file + rm public/index.html cp README.md public/ - name: Publish on GitHub Pages uses: peaceiris/actions-gh-pages@v4 - #if: github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/main' with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./public