Skip to content

Update mkdocsDeploySoteriaCurate.yml #38

Update mkdocsDeploySoteriaCurate.yml

Update mkdocsDeploySoteriaCurate.yml #38

Workflow file for this run

name: Deploy MkDocs to GitHub Pages
on:
push:
branches:
- main # Adjust if your primary branch differs
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs mkdocs-material # Ensure all dependencies are listed
- name: Custom Deploy to GitHub Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mkdocs build --clean
cd site
git init
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git add .
git commit -m 'Deploy MkDocs Site'
git remote add origin https://x-access-token:${GITHUB_TOKEN}@github.com/penwern/curate-documentation.git
git push -f origin HEAD:gh-pages