Skip to content

Update main.yml

Update main.yml #18

Workflow file for this run

name: Deploy MkDocs to GitHub Pages
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install MkDocs and dependencies
run: |
pip install mkdocs mkdocs-material
- name: Build and deploy
env:
GH_PAT: ${{ secrets.GH_PAT }}
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
remote_url="https://${GH_PAT}@github.com/QualCoder-Org/qualcoder-org.github.io.git"
git remote set-url origin "$remote_url"
mkdocs gh-deploy --force