From b250ef5f5e4663f175a68d91de9d62360c489802 Mon Sep 17 00:00:00 2001 From: Koen Van Impe Date: Tue, 21 Jan 2025 15:16:31 +0100 Subject: [PATCH] Update deploy-gh-pages.yml --- .github/workflows/deploy-gh-pages.yml | 32 +++++++++++++-------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/deploy-gh-pages.yml b/.github/workflows/deploy-gh-pages.yml index 9a76799..8a0a007 100644 --- a/.github/workflows/deploy-gh-pages.yml +++ b/.github/workflows/deploy-gh-pages.yml @@ -37,20 +37,20 @@ jobs: find _site -type f -name "*.md" -exec sed -i 's/\.md/\.html/g' {} \; find _site -type f -name "*.md" -exec sed -i 's/\.ipynb/\.html/g' {} \; - #- name: Deploy to gh-pages branch - # uses: peaceiris/actions-gh-pages@v4 - # with: - # github_token: ${{ secrets.GITHUB_TOKEN }} - # publish_dir: ./_site - # branch: gh-pages - # force_orphan: true # Ensure gh-pages branch only contains docs + - name: Deploy to gh-pages branch + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./_site + branch: gh-pages + force_orphan: true # Ensure gh-pages branch only contains docs - - name: Commit and push updated README - run: | - git config user.name "GitHub Actions" - git config user.email "actions@github.com" - git add --all - git commit -m "Deploy all files to GitHub Pages" - git push - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + #- name: Commit and push updated README + # run: | + # git config user.name "GitHub Actions" + # git config user.email "actions@github.com" + # git add --all + # git commit -m "Deploy all files to GitHub Pages" + # git push + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}