Skip to content

Commit 203ff91

Browse files
Divya SankarDivya Sankar
authored andcommitted
github test2
1 parent 3b44af7 commit 203ff91

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

.github/workflows/mkdocs-deploy.yml

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,17 @@ jobs:
1313
- uses: actions/checkout@v4
1414
- name: Configure Git Credentials
1515
run: |
16-
git config user.name github-actions[bot]
17-
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
18-
- uses: actions/setup-python@v5
16+
git config --global user.name 'GitHub Actions'
17+
git config --global user.email '[email protected]'
18+
- name: Set up Python 3.11
19+
uses: actions/setup-python@v5
1920
with:
20-
python-version: 3.x
21-
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
22-
- uses: actions/cache@v4
23-
with:
24-
key: mkdocs-material-${{ env.cache_id }}
25-
path: .cache
26-
restore-keys: |
27-
mkdocs-material-
28-
- run: pip install mkdocs-material
29-
- run: pip install mkdocs-autorefs
30-
- run: pip install mkdocs-get-deps
31-
- run: pip install mkdocs-material-extensions
32-
- run: pip install mkdocstrings
33-
- run: pip install mkdocstrings-python
34-
- run: mkdocs gh-deploy --force --verbose
21+
python-version: "3.11"
22+
- name: Install Dependencies
23+
run: pip install mkdocs-material mkdocs-autorefs mkdocs-get-deps mkdocs-material-extensions mkdocstrings mkdocstrings-python
24+
- name: Deploy docs
25+
uses: mhausenblas/mkdocs-deploy-gh-pages@master
26+
# Or use mhausenblas/mkdocs-deploy-gh-pages@nomaterial to build without the mkdocs-material theme
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
CONFIG_FILE: mkdocs.yaml

.github/workflows/python-publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,7 @@ jobs:
4949

5050
- name: Publish package distributions to PyPI
5151
run: poetry publish --username $PYPI_USERNAME --password $PYPI_PASSWORD
52+
53+
- name: Publish documentation
54+
run: pip install mkdocs-material
55+
run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)