Skip to content

Commit 8930a06

Browse files
committed
docs: deploy to phomo/ folder
1 parent c88e452 commit 8930a06

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

.github/workflows/docs.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,20 @@ jobs:
3030
uses: abatilo/actions-poetry@v2
3131
- name: Install doc dependencies
3232
run: poetry install --with docs
33-
- name: Deploy docs
34-
run: poetry run mkdocs gh-deploy --force
33+
- name: Build docs
34+
run: poetry run mkdocs build
35+
- name: Deploy docs to /phomo
36+
run: |
37+
# Clone the gh-pages branch
38+
git clone --branch gh-pages https://github.com/${{ github.repository }} gh-pages
39+
cd gh-pages
40+
41+
# Create the phomo directory and copy the site files
42+
mkdir -p phomo
43+
rm -rf phomo/* # Clear old files
44+
cp -r ../site/* phomo/
45+
46+
# Commit and push changes
47+
git add phomo
48+
git commit -m "Deploy docs to /phomo"
49+
git push origin gh-pages --force

docs/CNAME

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
phomo-docs.loiccoyle.com
1+
docs.loiccoyle.com

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
site_name: phomo
22
site_description: Python package and CLI utility to create photo mosaics.
33
site_author: Loic Coyle
4-
site_url: https://phomo-docs.loiccoyle.com/
4+
site_url: https://docs.loiccoyle.com/
55

66
repo_name: phomo
77
repo_url: https://github.com/loiccoyle/phomo

0 commit comments

Comments
 (0)