Skip to content

Commit 2f721a1

Browse files
authored
feat(add github pages support): github pages support (#6)
1 parent 5890b54 commit 2f721a1

3 files changed

Lines changed: 41 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
11+
concurrency:
12+
group: pages-deploy
13+
cancel-in-progress: true
14+
15+
jobs:
16+
build-and-deploy:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Node
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: 20
26+
27+
- name: Install dependencies
28+
run: npm install
29+
30+
- name: Build
31+
run: npm run build
32+
33+
- name: Deploy to gh-pages
34+
uses: peaceiris/actions-gh-pages@v4
35+
with:
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
publish_dir: ./dist
38+
publish_branch: gh-pages
39+
cname: ev.xyz

astro.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import react from '@astrojs/react'
33
import sitemap from '@astrojs/sitemap'
44

55
export default defineConfig({
6-
site: 'https://evolve.com',
6+
site: 'https://ev.xyz',
77
output: 'static',
88
integrations: [react(), sitemap()]
99
})

public/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ev.xyz

0 commit comments

Comments
 (0)