Skip to content

Commit 82779fa

Browse files
Merge pull request #432 from nextcloud/feat/ci-deploy-docs
Add CI for deploying documentation
2 parents 91e5813 + b7fec43 commit 82779fa

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy documentation
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
build-and-deploy:
12+
concurrency: ci-${{ github.ref }}
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
18+
- name: Set up node
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version-file: 'package.json'
22+
23+
- name: Install dependencies & build
24+
run: |
25+
npm ci
26+
npm run build:doc
27+
28+
- name: Deploy
29+
uses: JamesIves/github-pages-deploy-action@v4
30+
with:
31+
folder: dist/doc
32+
branch: gh-pages

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# @nextcloud/logger
22

3+
[![npm](https://img.shields.io/npm/v/@nextcloud/logger.svg)](https://www.npmjs.com/package/@nextcloud/logger)
4+
[![Documentation](https://img.shields.io/badge/Documentation-online-brightgreen)](https://nextcloud.github.io/nextcloud-logger/)
5+
36
Generic JavaScript logging interface for Nextcloud apps and libraries
47

58
## Usage
9+
See also [API documentation](https://nextcloud.github.io/nextcloud-logger/).
610

711
```js
812
import { getLoggerBuilder } from '@nextcloud/logger'

0 commit comments

Comments
 (0)