2020 with :
2121 python-version : 3.12
2222
23- - run : echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
23+ - run : echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
2424
2525 - uses : actions/cache@v4
2626 with :
@@ -32,24 +32,39 @@ jobs:
3232 - name : Install Dependencies
3333 run : |
3434 echo "Installing Python dependencies"
35- pip install --upgrade pip
36- pip install mike==2.0.0 # Install mike for versioning
37- pip install mkdocs==1.4.2
35+ pip install --upgrade pip # Ensure pip is up-to-date
36+ pip install zipp==3.0.0
37+ pip install pathlib2==2.3.5
38+ pip install -U --upgrade mkdocs==1.4.2
3839 pip install Pygments==2.14.0
3940 pip install pymdown-extensions==9.10
40- pip install mkdocs-material==9.1.2
4141 pip install mkdocs-minify-plugin==0.6.2
42+ pip install mkdocs-markdownextradata-plugin==0.2.5
4243 pip install mkdocs-redirects==1.2.0
44+ pip install pathlib==1.0.1
45+ pip install -U mkdocs-material==9.1.2
46+ pip install markdown-include==0.8.1
47+ pip install markdown==3.2.1
4348 pip install mkdocs-exclude==1.0.2
49+ pip install -U Jinja2==3.1.0
4450 pip install mkdocs-glightbox==0.3.4
4551 pip install mkdocs-include-markdown-plugin==1.0.0
4652 pip install mkdocs-open-in-new-tab==1.0.3
4753 pip install mike==2.1.3
48-
4954 - name : Deploy Documentation with mike
5055 run : |
51- mike deploy --config-file developer-docs/mkdocs.yml Developer latest --branch gh-pages-pe --push
52- mike deploy --config-file pe-docs/mkdocs.yml "Platform Engineer" --branch gh-pages-pe --push
53- mike set-default --config-file developer-docs/mkdocs.yml Developer --branch gh-pages-pe --push
56+ # Ensure we're on the correct branch
57+ git fetch origin gh-pages-pe || echo "Branch does not exist yet"
58+ git checkout gh-pages-pe || git checkout -b gh-pages-pe
59+ git reset --hard origin/gh-pages-pe || echo "No remote changes to reset"
60+
61+ # Deploy documentation using mike
62+ mike deploy --config-file en/developer-docs/mkdocs.yml Developer latest --branch gh-pages-pe --push
63+ mike deploy --config-file en/pe-docs/mkdocs.yml "Platform Engineer" --branch gh-pages-pe --push
64+ mike set-default --config-file en/developer-docs/mkdocs.yml Developer --branch gh-pages-pe --push
65+
66+ git push origin gh-pages-pe --force
67+
5468 env :
5569 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
70+
0 commit comments