-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa1e94f
commit d9597de
Showing
1 changed file
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||