Skip to content

Commit dfce204

Browse files
authored
Create deploy.yml
1 parent 10cfc6e commit dfce204

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Or the branch you're working on
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: '14'
19+
20+
- name: Install dependencies
21+
run: npm install
22+
23+
- name: Build the project
24+
run: npm run build # This depends on your build system (e.g., React, Vue, etc.)
25+
26+
- name: Deploy to GitHub Pages
27+
uses: JamesIves/[email protected]
28+
with:
29+
branch: gh-pages # Deployment branch
30+
folder: src # Folder to deploy (set to where the build output is)

0 commit comments

Comments
 (0)