Skip to content

Commit d992bef

Browse files
authored
Create deploy.yml (#216)
1 parent 3c251d0 commit d992bef

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Deploy static site to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deployment:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v6
14+
- name: Setup Node.js (or other environment if needed)
15+
uses: actions/setup-node@v6
16+
with:
17+
node-version: 24
18+
- name: Install dependencies and build site
19+
run: |
20+
npm install
21+
npm run build
22+
- name: Upload artifact
23+
uses: actions/upload-pages-artifact@v4
24+
with:
25+
path: '_site' # The directory that contains the deployable files
26+
- name: Deploy to GitHub Pages
27+
id: deployment
28+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)