-
-
Notifications
You must be signed in to change notification settings - Fork 45
44 lines (37 loc) · 1.43 KB
/
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
35
36
37
38
39
40
41
42
43
44
name: Update Docs
on:
push:
branches:
- master
jobs:
Build:
runs-on: ubuntu-latest
outputs:
package-name: ${{ steps.packageInfo.outputs.package-name }}
package-version: ${{ steps.packageInfo.outputs.package-version }}
commit-msg: ${{ steps.packageInfo.outputs.commit-msg }}
steps:
- name: Checkout Commit
uses: actions/checkout@v2
- name: Parsing Package Info
id: packageInfo
run: |
echo "::set-output name=package-name::$(jq -r .name package.json)"
echo "::set-output name=package-version::$(jq -r .version package.json)"
echo "::set-output name=commit-msg::$(git log -1 --pretty=%B)"
- name: Setup Node.js environment
uses: actions/setup-node@v2.1.1
- name: Install Libvips
- run: sudo apt-get update
- run: sudo apt-get install ffmpeg libvips-dev gtk-doc-tools gobject-introspection
- name: Install Dependencies
run: npm i
- name: Build
run: npm run doc
- name: Publish to Pages
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}