We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7f4089 commit 3e4ecdcCopy full SHA for 3e4ecdc
1 file changed
.github/workflows/build.yml
@@ -0,0 +1,43 @@
1
+name: Deploy to gh-pages
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
+ workflow_dispatch:
8
9
+permissions:
10
+ contents: write
11
+ pages: write
12
+ id-token: write
13
14
+jobs:
15
+ deploy:
16
+ runs-on: ubuntu-latest
17
18
+ steps:
19
+ - name: Checkout code
20
+ uses: actions/checkout@v3
21
22
+ - name: Setup Node.js
23
+ uses: actions/setup-node@v3
24
+ with:
25
+ node-version: 22
26
27
+ - name: Install Git
28
+ run: sudo apt-get install git -y
29
30
+ - name: Switch to gh-pages branch
31
+ run: |
32
+ git config user.name "github-actions[bot]"
33
+ git config user.email "github-actions[bot]@users.noreply.github.com"
34
35
+ - name: Install dependencies
36
+ run: npm install
37
38
+ - name: Eslint checks
39
+ run: npm run eslint
40
41
+ - name: Build project
42
+ run: npm run build
43
0 commit comments