-
Notifications
You must be signed in to change notification settings - Fork 146
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
0050fc8
commit 036b5f4
Showing
2 changed files
with
9 additions
and
2 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 |
---|---|---|
|
@@ -25,7 +25,7 @@ jobs: | |
run: make install | ||
|
||
- name: Build MkDocs site | ||
run: poetry run mkdocs build | ||
run: poetry run mkdocs build --verbose | ||
|
||
- name: Deploy to Next.js repo | ||
env: | ||
|
@@ -34,10 +34,16 @@ jobs: | |
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 | ||
echo "Removing existing docs directory..." | ||
rm -rf next-repo/public/docs | ||
echo "Creating new docs directory..." | ||
mkdir -p next-repo/public/docs | ||
cp -r site/* next-repo/public/docs/ | ||
echo "Copying MkDocs site to Next.js repo..." | ||
cp -rv site/* next-repo/public/docs/ | ||
cd next-repo | ||
echo "Contents of public/docs directory:" | ||
ls -R public/docs | ||
git add . | ||
git status | ||
git commit -m "Update docs" || echo "No changes to commit" | ||
git push |
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