Skip to content

Commit ed0fca8

Browse files
committed
Enhance GitHub Pages deployment configuration: add concurrency settings, environment variables, and update dependencies
1 parent 95d673e commit ed0fca8

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,38 @@ permissions:
1111
pages: write
1212
id-token: write
1313

14+
concurrency:
15+
group: pages
16+
cancel-in-progress: true
17+
18+
env:
19+
CI: true
20+
1421
jobs:
1522
deploy:
1623
runs-on: ubuntu-latest
24+
environment:
25+
name: github-pages
26+
url: ${{ steps.deployment.outputs.page_url }}
1727
steps:
1828
- name: Checkout
1929
uses: actions/checkout@v4
2030
- name: Setup Python
2131
uses: actions/setup-python@v5
2232
with:
2333
python-version: '3.11'
34+
- name: Configure Pages
35+
uses: actions/configure-pages@v5
2436
- name: Install dependencies
2537
run: |
2638
python -m pip install --upgrade pip
27-
pip install mkdocs-material mkdocstrings[python] mkdocs-git-revision-date-localized-plugin mkdocs-tags-plugin
39+
pip install mkdocs-material mkdocstrings[python] mkdocs-git-revision-date-localized-plugin mkdocs-plugin-tags mike
2840
- name: Build site
2941
run: mkdocs build --strict
3042
- name: Upload artifact
3143
uses: actions/upload-pages-artifact@v3
3244
with:
3345
path: site
3446
- name: Deploy to GitHub Pages
47+
id: deployment
3548
uses: actions/deploy-pages@v4
36-

.github/workflows/mkdocs-gh-pages.yml

Whitespace-only changes.

0 commit comments

Comments
 (0)