Skip to content

Commit 68859f3

Browse files
committed
feat(workflows): add github actions and update config
1 parent 440345a commit 68859f3

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed

.github/workflows/now-deploy.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Deploy example on now
2+
3+
on: [push]
4+
5+
jobs:
6+
deploy_example:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- uses: borales/[email protected]
11+
with:
12+
cmd: install
13+
- uses: borales/[email protected]
14+
with:
15+
cmd: test
16+
17+
- name: Deploy example to now
18+
run: |
19+
cd example
20+
npx now --token=${{ secrets.ZEIT_TOKEN }} --name=vuepress-jsdoc-example --prod
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Test and publish to npm
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
node-version: [8.x, 10.x, 12.x]
15+
16+
steps:
17+
- uses: actions/checkout@v1
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
23+
- name: npm install and test
24+
run: |
25+
npm install
26+
npm test
27+
28+
release:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v1
32+
- name: Make stable release to npm
33+
uses: epeli/npm-release@v1
34+
with:
35+
type: stable
36+
token: ${{ secrets.NPM_TOKEN }}

example/documentation/.vuepress/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const { sidebarTree } = require('../code/config');
22

33
module.exports = {
44
contentLoading: true,
5+
dest: 'public',
56
title: 'Hello vuepress-jsdoc',
67
description: 'Just playing around with vuepress-jsdoc',
78
locales: {

0 commit comments

Comments
 (0)