Skip to content

Add pointer to website #1

Add pointer to website

Add pointer to website #1

Workflow file for this run

name: Deploy MkDocs to Next.js
on:
push:
branches:
- main # or your default branch
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- 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 # Add any other dependencies your MkDocs site needs
- name: Build MkDocs site
run: mkdocs build
- name: Deploy to Next.js repo
env:
NEXT_REPO_TOKEN: ${{ secrets.NEXT_REPO_TOKEN }}
run: |
git config --global user.name 'GitHub Action'
git config --global user.email '[email protected]'
git clone https://x-access-token:${NEXT_REPO_TOKEN}@github.com/shreyashankar/docetl-website.git next-repo
mkdir -p next-repo/public/docs
cp -r site/* next-repo/public/docs/
cd next-repo
git add .
git commit -m "Update docs" || echo "No changes to commit"
git push