Skip to content

Commit b02fb29

Browse files
authored
Create static.yml
1 parent be44278 commit b02fb29

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/static.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v2
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: '14' # Use your preferred Node.js version
23+
24+
- name: Install dependencies
25+
run: npm install # Use yarn or another package manager if needed
26+
27+
- name: Build the project
28+
run: npm run build # Run your build command (vite build or other)
29+
30+
- name: Deploy to GitHub Pages
31+
uses: peaceiris/actions-gh-pages@v3
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
folder: build # The build folder generated after the build process

0 commit comments

Comments
 (0)