We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d04e46c commit 94e6187Copy full SHA for 94e6187
.github/workflows/deploy.yml
@@ -0,0 +1,32 @@
1
+name: Deploy to GitHub Pages
2
+
3
+on:
4
+ push:
5
+ branches: main
6
7
+jobs:
8
+ build-and-deploy:
9
+ runs-on: ubuntu-latest
10
11
+ steps:
12
+ - name: Checkout
13
+ uses: actions/checkout@v4
14
15
+ - name: Setup Node.js
16
+ uses: actions/setup-node@v4
17
+ with:
18
+ node-version: "22"
19
+ cache: "npm"
20
21
+ - name: Install dependencies
22
+ run: npm ci
23
24
+ - name: Build
25
+ run: npx vite build --base=/React-SlidingTextBox/
26
27
+ - name: Deploy to GitHub Pages
28
+ uses: peaceiris/actions-gh-pages@v4
29
30
+ github_token: ${{ secrets.GITHUB_TOKEN }}
31
+ publish_dir: ./dist
32
+ publish_branch: gh-pages
0 commit comments