Skip to content

Commit 8de03a4

Browse files
committed
docs: deploy to phomo/ folder
1 parent c88e452 commit 8de03a4

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: Clone gh-pages branch
36+
run: |
37+
git clone --branch gh-pages https://github.com/${{ github.repository }} gh-pages
38+
cd gh-pages
39+
- name: Deploy docs to /phomo
40+
run: |
41+
cd gh-pages
42+
git config user.name github-actions[bot]
43+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
44+
mkdir -p phomo
45+
rm -rf phomo/* # Clear old files
46+
cp -r ../site/* phomo/
47+
git add phomo
48+
git commit -m "Deploy docs to /phomo"
49+
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)