Skip to content

Commit 8e57b51

Browse files
committed
Update workflow file
1 parent 18180ab commit 8e57b51

File tree

1 file changed

+28
-8
lines changed

1 file changed

+28
-8
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
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,44 @@ 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
4854
55+
- name: Check GITHUB_TOKEN Value
56+
run: |
57+
if [ -z "${GITHUB_TOKEN}" ]; then
58+
echo "GITHUB_TOKEN is NOT set!"
59+
exit 1
60+
else
61+
echo "GITHUB_TOKEN is set."
62+
fi
63+
env:
64+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4965
- name: Deploy Documentation with mike
5066
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
67+
mike deploy --config-file en/developer-docs/mkdocs.yml Developer latest --branch gh-pages-pe --push
68+
mike deploy --config-file en/pe-docs/mkdocs.yml "Platform Engineer" --branch gh-pages-pe --push
69+
mike set-default --config-file en/developer-docs/mkdocs.yml Developer --branch gh-pages-pe --push
70+
71+
git push origin gh-pages-pe --force
72+
5473
env:
5574
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75+

0 commit comments

Comments
 (0)