File tree Expand file tree Collapse file tree 3 files changed +24
-4
lines changed
Expand file tree Collapse file tree 3 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 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]
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
Original file line number Diff line number Diff line change 1- phomo- docs.loiccoyle.com
1+ docs.loiccoyle.com
Original file line number Diff line number Diff line change 11site_name : phomo
22site_description : Python package and CLI utility to create photo mosaics.
33site_author : Loic Coyle
4- site_url : https://phomo- docs.loiccoyle.com/
4+ site_url : https://docs.loiccoyle.com/
55
66repo_name : phomo
77repo_url : https://github.com/loiccoyle/phomo
You can’t perform that action at this time.
0 commit comments