Skip to content

Commit

Permalink
Update deploy-gh-pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cudeso authored Jan 21, 2025
1 parent bc075c9 commit b250ef5
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/deploy-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
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 "[email protected]"
# git add --all
# git commit -m "Deploy all files to GitHub Pages"
# git push
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b250ef5

Please sign in to comment.