File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments