removed unnecessary files #33
This file contains hidden or 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
name: Deploy MkDocs Site | |
on: | |
push: | |
branches: | |
- master # Change this to your default branch if it's not master. | |
permissions: | |
contents: write | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' # Ensure this matches the Python version you use locally. | |
- name: Install Requirements | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements-doc.txt # This file should list mkdocs and any other packages. | |
- name: Build the MkDocs Site | |
run: | | |
mkdocs build --verbose # Build the site. | |
- name: Copy Images to Site | |
run: | | |
mkdir -p site/assets/images | |
cp -r assets/images/. site/assets/images/ | |
- name: List Site Directory (Debug) | |
run: | | |
ls -R site | |
- name: Create CNAME File | |
run: echo "prabha.ai" > site/CNAME | |
# Replace "prabha.ai" with your actual custom domain. | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: site |