Skip to content

Commit bb4d706

Browse files
committed
Add GH Action to deploy live demo
1 parent 0a4df3a commit bb4d706

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/workflows/build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build Website
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Setup node
14+
uses: actions/setup-node@v4
15+
with:
16+
node-version: 20
17+
- name: Clear dist folder
18+
run: |
19+
git config --global --add safe.directory "$GITHUB_WORKSPACE"
20+
rm -rf dist/
21+
- name: Install and build
22+
run: |
23+
npm install
24+
npm run build
25+
- name: Deploy to GitHub Pages
26+
uses: peaceiris/actions-gh-pages@v3
27+
with:
28+
github_token: ${{ secrets.GITHUB_TOKEN }}
29+
publish_dir: ./dist
30+
user_name: 'GitHub Action'
31+
user_email: '[email protected]'

src/components.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ declare module 'vue' {
1212
BlogPosts: typeof import('./components/BlogPosts.vue')['default']
1313
BlogTitle: typeof import('./components/BlogTitle.vue')['default']
1414
FileLayout: typeof import('./components/FileLayout.vue')['default']
15-
Files: typeof import('./components/Files.vue')['default']
1615
FollowLinks: typeof import('./components/FollowLinks.vue')['default']
1716
GettingStarted: typeof import('./components/GettingStarted.vue')['default']
1817
HelloApi: typeof import('./components/HelloApi.vue')['default']

0 commit comments

Comments
 (0)