Skip to content

Commit 4912690

Browse files
committed
work
1 parent d81676f commit 4912690

File tree

8 files changed

+35
-124
lines changed

8 files changed

+35
-124
lines changed

.github/workflows/docs.yml

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,45 @@
1-
name: Publish Docs
1+
name: Deploy
22
on:
33
push:
44
branches:
55
- main
6+
workflow_dispatch:
67
permissions:
78
contents: write
9+
pages: write
10+
id-token: write
811
jobs:
9-
deploy:
12+
build_mkdocs:
1013
runs-on: ubuntu-latest
1114
steps:
12-
- uses: actions/checkout@v4
13-
- name: Configure Git Credentials
14-
run: |
15-
git config user.name github-actions[bot]
16-
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
1719
- uses: actions/setup-python@v5
1820
with:
19-
python-version: '3.12'
20-
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
21-
- uses: actions/cache@v4
21+
python-version: 3.12
22+
- run: pip install \
23+
mkdocs-material \
24+
mkdocs-glightbox
25+
- run: mkdocs gh-deploy --config-file mkdocs.yml --force
26+
deploy_mkdocs:
27+
needs: build_mkdocs
28+
environment:
29+
name: github-pages
30+
url: ${{ steps.deployment.outputs.page_url }}
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v4
35+
with:
36+
ref: gh-pages
37+
- name: Setup Pages
38+
uses: actions/configure-pages@v5
39+
- name: Upload artifact
40+
uses: actions/upload-pages-artifact@v3
2241
with:
23-
key: mkdocs-material-${{ env.cache_id }}
24-
path: .cache
25-
restore-keys: |
26-
mkdocs-material-
27-
- run: pip install mkdocs-material mkdocs-glightbox
28-
- run: mkdocs gh-deploy --force
42+
path: '.'
43+
- name: Deploy to GitHub Pages
44+
id: deployment
45+
uses: actions/deploy-pages@v4

docs/deploy/base/deployment.yaml

Lines changed: 0 additions & 46 deletions
This file was deleted.

docs/deploy/base/ingress.yaml

Lines changed: 0 additions & 23 deletions
This file was deleted.

docs/deploy/base/kustomization.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/deploy/base/namespace.yaml

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs/deploy/base/service.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

docs/deploy/overlays/production/kustomization.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
mkdocs-material
2+
mkdocs-glightbox

0 commit comments

Comments
 (0)