Skip to content

Commit 7116150

Browse files
Ramesh Tamilselvanclaude
andcommitted
ci(docs): trigger docs deploy from feature branch
Allow the docs-deploy workflow to run from the current feature branch so the documentation site goes live before merging to main. Also trigger on workflow file changes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d4bae26 commit 7116150

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

.github/workflows/docs-deploy.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Deploy Docs
2+
3+
on:
4+
push:
5+
branches: [main, 'feat/dapps-protocol-updates-2026-03-16']
6+
paths:
7+
- 'docs/site/**'
8+
- '.github/workflows/docs-deploy.yml'
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
16+
concurrency:
17+
group: pages
18+
cancel-in-progress: false
19+
20+
jobs:
21+
build:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 0
27+
28+
- uses: actions/setup-node@v4
29+
with:
30+
node-version: 20
31+
cache: npm
32+
cache-dependency-path: docs/site/package-lock.json
33+
34+
- name: Install dependencies
35+
run: npm ci
36+
working-directory: docs/site
37+
38+
- name: Build VitePress site
39+
run: npm run build
40+
working-directory: docs/site
41+
42+
- name: Create CNAME for custom domain
43+
run: echo 'docs.aethelred.io' > docs/site/docs/.vitepress/dist/CNAME
44+
45+
- uses: actions/upload-pages-artifact@v3
46+
with:
47+
path: docs/site/docs/.vitepress/dist
48+
49+
deploy:
50+
environment:
51+
name: github-pages
52+
url: ${{ steps.deployment.outputs.page_url }}
53+
needs: build
54+
runs-on: ubuntu-latest
55+
steps:
56+
- name: Deploy to GitHub Pages
57+
id: deployment
58+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)