Skip to content

Commit

Permalink
docs: deploy to phomo/ folder
Browse files Browse the repository at this point in the history
  • Loading branch information
loiccoyle committed Jan 18, 2025
1 parent c88e452 commit da4871a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,22 @@ jobs:
uses: abatilo/actions-poetry@v2
- name: Install doc dependencies
run: poetry install --with docs
- name: Deploy docs
run: poetry run mkdocs gh-deploy --force
- name: Build docs
run: poetry run mkdocs build
- name: Clone gh-pages branch
run: |
git clone --branch gh-pages https://github.com/${{ github.repository }} gh-pages
cd gh-pages
- name: Configure Git for Deployment
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Deploy docs to /phomo
run: |
cd gh-pages
mkdir -p phomo
rm -rf phomo/* # Clear old files
cp -r ../site/* phomo/
git add phomo
git commit -m "Deploy docs to /phomo"
git push origin gh-pages
2 changes: 1 addition & 1 deletion docs/CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
phomo-docs.loiccoyle.com
docs.loiccoyle.com
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
site_name: phomo
site_description: Python package and CLI utility to create photo mosaics.
site_author: Loic Coyle
site_url: https://phomo-docs.loiccoyle.com/
site_url: https://docs.loiccoyle.com/

repo_name: phomo
repo_url: https://github.com/loiccoyle/phomo
Expand Down

0 comments on commit da4871a

Please sign in to comment.