Skip to content

Commit 3ae78dc

Browse files
committed
starting gh-action
1 parent 013c208 commit 3ae78dc

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/deploy.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
on:
2+
push:
3+
branches:
4+
- main # Change this to your default branch if it's different
5+
- feature/add-gh-actions # Development here :-)
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: 18 # Use Node.js 18 here
19+
20+
- name: Install dependencies
21+
run: npm install
22+
23+
- name: Build site
24+
run: npm run build
25+
26+
- name: Deploy to GitHub Pages
27+
uses: peaceiris/actions-gh-pages@v3
28+
with:
29+
github_token: ${{ secrets.GITHUB_TOKEN }}
30+
publish_dir: ./build # Change this if your build output directory is different

0 commit comments

Comments
 (0)