-
Notifications
You must be signed in to change notification settings - Fork 6
31 lines (26 loc) · 884 Bytes
/
demo.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Build and deploy the demo page
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Git repository
uses: actions/checkout@v2
- name: Install dependencies
run: npm install && cd demo && npm install
- name: Build the plugin
run: npm run build
- name: Build and Deploy
uses: jenkey2011/vuepress-deploy@master
env:
# See https://github.com/marketplace/actions/vuepress-deploy#create-a-personal-access-token
# on how to create and store an access token in case a new one is
# ever needed
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
CNAME: code-switcher.padarom.xyz
TARGET_BRANCH: gh-pages
BUILD_SCRIPT: npm run build:demo
BUILD_DIR: demo/src/.vuepress/dist