We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73c0c3b commit 2f7ae35Copy full SHA for 2f7ae35
1 file changed
.github/workflows/deploy.yml
@@ -0,0 +1,33 @@
1
+name: Deploy to GitHub Pages
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main # Hoặc 'master' tùy tên nhánh chính của bạn
7
8
+permissions:
9
+ contents: write
10
11
+jobs:
12
+ deploy:
13
+ name: Deploy to GitHub Pages
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v3
17
+ - uses: actions/setup-node@v3
18
+ with:
19
+ node-version: 18
20
+ cache: npm
21
22
+ - name: Install dependencies
23
+ run: npm ci
24
25
+ - name: Build website
26
+ run: npm run build
27
28
+ - name: Deploy to GitHub Pages
29
+ uses: peaceiris/actions-gh-pages@v3
30
31
+ github_token: ${{ secrets.GITHUB_TOKEN }}
32
+ publish_dir: ./build
33
+ cname: brewkits.dev # Quan trọng
0 commit comments