@@ -14,39 +14,29 @@ concurrency:
1414
1515jobs :
1616 build :
17- name : Build static docs
17+ name : Build docs
1818 runs-on : ubuntu-latest
1919 steps :
20- # Checkout repo sources.
2120 - name : Checkout
22- uses : actions/checkout@v4
21+ uses : actions/checkout@v6
2322
24- # Minimal build: create a single static HTML file.
25- - name : Build docs (minimal)
26- run : |
27- mkdir -p docs-dist
28- cat > docs-dist/index.html <<'HTML'
29- <!doctype html>
30- <html lang="en">
31- <head>
32- <meta charset="utf-8" />
33- <meta name="viewport" content="width=device-width, initial-scale=1" />
34- <title>Markdown Editor Docs</title>
35- </head>
36- <body>
37- <h1>Markdown Editor Docs</h1>
38- <p>Deployed via GitHub Pages.</p>
39- </body>
40- </html>
41- HTML
23+ - name : Setup pnpm
24+ uses : pnpm/action-setup@v5
25+
26+ - name : Setup Node
27+ uses : actions/setup-node@v6
28+ with :
29+ node-version-file : ' .nvmrc'
30+ cache : pnpm
31+
32+ - name : Build HTML docs with Diplodoc CLI
33+ run : pnpm run ci:docs:build
4234
43- # Configure GitHub Pages.
4435 - name : Configure Pages
45- uses : actions/configure-pages@v5
36+ uses : actions/configure-pages@v6
4637
47- # Upload the static site folder as an artifact for deployment.
4838 - name : Upload Pages artifact
49- uses : actions/upload-pages-artifact@v4
39+ uses : actions/upload-pages-artifact@v5
5040 with :
5141 path : ./docs-dist
5242
5646 runs-on : ubuntu-latest
5747 environment :
5848 name : github-pages
59- # The deploy action outputs the final Pages URL here.
6049 url : ${{ steps.deployment.outputs.page_url }}
6150 steps :
62- # Deploy the uploaded artifact to GitHub Pages.
6351 - name : Deploy
6452 id : deployment
65- uses : actions/deploy-pages@v4
53+ uses : actions/deploy-pages@v5
0 commit comments