Skip to content

Commit 92f0e03

Browse files
committed
ci(docs): add temporary workflow for Starlight docs preview
1 parent 8696ce2 commit 92f0e03

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/docs-preview.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Docs Preview
2+
3+
on:
4+
push:
5+
branches:
6+
- feat/updated-docs-with-starlight
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: docs-preview
15+
cancel-in-progress: true
16+
17+
jobs:
18+
publish_docs:
19+
name: Publish Documentation Preview
20+
runs-on: ubuntu-latest
21+
environment:
22+
name: github-pages
23+
url: ${{ steps.deployment.outputs.page_url }}
24+
steps:
25+
- name: Checkout source code
26+
uses: actions/checkout@v4
27+
28+
- name: Setup Node.js
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: 22.x
32+
cache: 'npm'
33+
34+
- name: Install dependencies
35+
run: npm ci
36+
37+
- name: Build documentation
38+
run: npm run docs:build
39+
40+
- name: Publish docs to GitHub Pages
41+
id: deployment
42+
uses: algorandfoundation/algokit-shared-config/.github/actions/publish-docs@main
43+
with:
44+
artifact_path: docs/dist

0 commit comments

Comments
 (0)