File tree 2 files changed +34
-1
lines changed
2 files changed +34
-1
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -20,4 +20,7 @@ yarn-debug.log*
20
20
yarn-error.log *
21
21
22
22
package-lock.json
23
- yarn.lock
23
+ yarn.lock
24
+
25
+ # Editor backup files
26
+ * ~
You can’t perform that action at this time.
0 commit comments