Skip to content

Commit 1b45888

Browse files
committed
Add CI automation for page deployment
1 parent 08f74b7 commit 1b45888

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Build and Deploy
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
jobs:
7+
build-and-deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@master
12+
13+
- name: vuepress-deploy
14+
uses: jenkey2011/vuepress-deploy@master
15+
env:
16+
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
17+
TARGET_BRANCH: master
18+
BUILD_SCRIPT: npm i && npm run build
19+
BUILD_DIR: src/.vuepress/dist/

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "The LunaTechs website",
55
"main": "index.js",
66
"scripts": {
7-
"build": "vuepress ./src",
7+
"build": "vuepress build ./src",
88
"serve": "vuepress dev ./src"
99
},
1010
"repository": {

0 commit comments

Comments
 (0)