-
Notifications
You must be signed in to change notification settings - Fork 112
63 lines (53 loc) · 1.75 KB
/
Copy pathdocs-deploy.yml
File metadata and controls
63 lines (53 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Deploy Documentation
on:
push:
branches:
- main
paths:
- 'docs/**'
- 'mkdocs.yml'
- 'requirements.txt'
- '.github/workflows/docs-deploy.yml'
workflow_dispatch:
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
fetch-depth: 0 # Fetch all history for git-revision-date-localized
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
cache: 'pip'
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
- name: Set up Rust (for cargo doc)
uses: ./.github/actions/setup-rust
with:
cache-key: "docs-deploy"
- name: Generate Rust API documentation
# Issue #1138: RUSTDOCFLAGS=-D warnings turns any rustdoc warning into
# a hard error so that documentation quality is enforced in CI.
# The continue-on-error guard has been removed — broken docs must be
# fixed before they are published to the docs site.
run: |
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --document-private-items
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Build and deploy documentation
run: |
mkdocs gh-deploy --force --clean --verbose
- name: Verify deployment
run: |
echo "Documentation deployed successfully!"
echo "Site should be available at: https://m1s0g1.github.io/Stellar-K8s/"