Rename CI workflow file and update docs requirements

Moved the CI workflow file to the correct '.github/workflows' directory. Added 'mkdocs-glightbox==0.40' to docs/requirements.txt for documentation enhancements.
This commit is contained in:
PurplePower
2025-08-26 15:21:20 +08:00
parent b18d68b11a
commit 1175bf29ff
2 changed files with 2 additions and 1 deletions

31
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: ci
on:
push:
branches:
- master
- main
- docs
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: ~/.cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- run: cd docs
- run: mkdocs gh-deploy --force