Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ioangatop committed Mar 19, 2024
1 parent 096e292 commit e4524e6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,19 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
- name: Setting up PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: 3.10.6
- name: Install Dependencies
run: |
pip install mkdocs-material
pip install pillow cairosvg mike
- name: Setup Docs Deploy
python-version: "3.10"
architecture: x64
- name: Setting up nox
uses: wntrblm/[email protected]
with:
python-versions: "3.10"
- name: Build Documentation
run: |
git config --global user.name "GitHub Action"
git config --global user.email "[email protected]"
- name: Build Docs Website
run: mike deploy --push develop
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git fetch origin gh-pages:gh-pages
nox -s docs -- --update-aliases dev
git push origin gh-pages
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:
with:
python-version: "3.10"
architecture: x64
- name: Setting up nox
uses: wntrblm/[email protected]
with:
python-versions: "3.10"
- name: Check prerelease
id: check_version
run: |
Expand All @@ -24,10 +28,6 @@ jobs:
else
echo "PRERELEASE=true" >> $GITHUB_OUTPUT
fi
- name: Setting up nox
uses: wntrblm/[email protected]
with:
python-versions: "3.10"
- name: Build artifacts
run: |
nox -s build
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def bump(session: nox.Session) -> None:


@nox.session
def deploy_docs(session: nox.Session) -> None:
def docs(session: nox.Session) -> None:
"""Builds and deploys the code documentation."""
args = session.posargs or []
session.run_always("pdm", "install", "--group", "docs", external=True)
Expand Down

0 comments on commit e4524e6

Please sign in to comment.