Skip to content

Commit 906e1c0

Browse files
committed
docs: deploy to phomo/ folder
1 parent c88e452 commit 906e1c0

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

.github/workflows/docs.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
15+
name: Checkout the repository
1516
- name: Configure Git Credentials
1617
run: |
1718
git config user.name github-actions[bot]
@@ -30,5 +31,24 @@ jobs:
3031
uses: abatilo/actions-poetry@v2
3132
- name: Install doc dependencies
3233
run: poetry install --with docs
33-
- name: Deploy docs
34-
run: poetry run mkdocs gh-deploy --force
34+
- name: Build docs
35+
run: poetry run mkdocs build
36+
37+
- name: Checkout gh-pages branch
38+
uses: actions/checkout@v4
39+
with:
40+
ref: gh-pages
41+
path: gh-pages
42+
- name: Deploy docs to /phomo
43+
run: |
44+
cd gh-pages
45+
mkdir -p phomo
46+
rm -rf phomo/* # Clear old files
47+
cp -r ../site/* phomo/
48+
49+
git config user.name "github-actions[bot]"
50+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
51+
52+
git add phomo
53+
git commit -m "Deploy docs to /phomo"
54+
git push origin gh-pages

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)