-
-
Notifications
You must be signed in to change notification settings - Fork 179
34 lines (30 loc) · 941 Bytes
/
docs.yml
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
32
33
34
name: Deploy
on:
workflow_dispatch:
inputs:
tags:
description: 'Documentation update'
default: 'Doc update'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Checout submodule
- name: Checkout submodules
run: git submodule update --init --remote --recursive
# Install
- name: Package update
working-directory: ./demo
run: npm install
# Build
- name: Package build
working-directory: ./demo
run: sudo npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: ./demo/src/.vuepress/dist # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch