Skip to content

Commit

Permalink
Update mkdocsDeploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunday-Crunk authored Apr 10, 2024
1 parent fa1e94f commit d9597de
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/mkdocsDeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ jobs:
python -m pip install --upgrade pip
pip install mkdocs mkdocs-material # Ensure all dependencies are listed
- name: Deploy to GitHub Pages
run: mkdocs gh-deploy --force
- name: Custom Deploy to GitHub Pages
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_COMMITTER_NAME: your-github-username # Replace with your GitHub username
GIT_COMMITTER_EMAIL: [email protected] # Replace with your email
GIT_AUTHOR_NAME: your-github-username # Replace with your GitHub username
GIT_AUTHOR_EMAIL: [email protected] # Replace with your email
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mkdocs build --clean
git checkout -b gh-pages
git add -f site
git -c user.name='GitHub Actions' -c user.email='[email protected]' commit -m 'Deploy MkDocs Site'
git push --force ${{ secrets.GITHUB_TOKEN }}@github.com/penwern/curate-documentation.git gh-pages:gh-pages

0 comments on commit d9597de

Please sign in to comment.