Skip to content

Commit

Permalink
feat(workflows): add github actions and update config
Browse files Browse the repository at this point in the history
  • Loading branch information
ph1p committed Dec 1, 2019
1 parent 440345a commit 68859f3
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/now-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Deploy example on now

on: [push]

jobs:
deploy_example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: borales/[email protected]
with:
cmd: install
- uses: borales/[email protected]
with:
cmd: test

- name: Deploy example to now
run: |
cd example
npx now --token=${{ secrets.ZEIT_TOKEN }} --name=vuepress-jsdoc-example --prod
36 changes: 36 additions & 0 deletions .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Test and publish to npm

on:
push:
tags:
- v*

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [8.x, 10.x, 12.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: npm install and test
run: |
npm install
npm test
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Make stable release to npm
uses: epeli/npm-release@v1
with:
type: stable
token: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions example/documentation/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const { sidebarTree } = require('../code/config');

module.exports = {
contentLoading: true,
dest: 'public',
title: 'Hello vuepress-jsdoc',
description: 'Just playing around with vuepress-jsdoc',
locales: {
Expand Down

0 comments on commit 68859f3

Please sign in to comment.