Skip to content

Commit 4cb3ed6

Browse files
dahliaclaude
andcommitted
Add GitHub Actions workflow for GitHub Pages deployment
- Add build and deploy workflow triggered on push to main - Add CNAME file for studio.fedify.dev custom domain - Update README.md and CLAUDE.md with deployment info Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0bed0ff commit 4cb3ed6

File tree

4 files changed

+69
-1
lines changed

4 files changed

+69
-1
lines changed

.github/workflows/build.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Build and Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Setup pnpm
25+
uses: pnpm/action-setup@v4
26+
27+
- name: Setup Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: 22
31+
cache: pnpm
32+
33+
- name: Install dependencies
34+
run: pnpm install --frozen-lockfile
35+
36+
- name: Build
37+
run: pnpm build
38+
39+
- name: Setup Pages
40+
uses: actions/configure-pages@v5
41+
42+
- name: Upload artifact
43+
uses: actions/upload-pages-artifact@v3
44+
with:
45+
path: dist
46+
47+
deploy:
48+
environment:
49+
name: github-pages
50+
url: ${{ steps.deployment.outputs.page_url }}
51+
runs-on: ubuntu-latest
52+
needs: build
53+
steps:
54+
- name: Deploy to GitHub Pages
55+
id: deployment
56+
uses: actions/deploy-pages@v4

CLAUDE.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,15 @@ All section components are in `src/components/`:
6363
- **Style**: Clean, professional, subtle gradients, not overly flashy
6464
- **Responsive**: Mobile-first, breakpoints at sm/md/lg
6565

66+
## Deployment
67+
68+
- Site is deployed to GitHub Pages at https://studio.fedify.dev/
69+
- Deployment is automated via GitHub Actions (`.github/workflows/build.yaml`)
70+
- Pushes to `main` branch trigger automatic build and deploy
71+
- Custom domain configured via `public/CNAME`
72+
6673
## Notes
6774

68-
- Newsletter form is frontend-only (no backend integration yet)
75+
- Newsletter form integrates with Buttondown (https://buttondown.com/fedify-studio)
6976
- The `WHITEPAPER.md` file contains detailed feature specifications
7077
- Logo files are in both root directory and `public/` folder

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ src/
5454
- **Smooth Animations**: CSS animations with staggered delays
5555
- **Accessible**: Semantic HTML, ARIA labels, keyboard navigation
5656

57+
## Deployment
58+
59+
The site is automatically deployed to [studio.fedify.dev](https://studio.fedify.dev/) via GitHub Actions when changes are pushed to the `main` branch.
60+
5761
## Related Links
5862

5963
- [Fedify Framework](https://fedify.dev/)

public/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
studio.fedify.dev

0 commit comments

Comments
 (0)