We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 013c208 commit 3ae78dcCopy full SHA for 3ae78dc
.github/workflows/deploy.yml
@@ -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
29
+ github_token: ${{ secrets.GITHUB_TOKEN }}
30
+ publish_dir: ./build # Change this if your build output directory is different
0 commit comments