Skip to content

Commit 33625d3

Browse files
committed
Add docs build GitHub Action
1 parent 5de465b commit 33625d3

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/dependabot.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file is generated in https://github.com/WeblateOrg/meta/
2+
version: 2
3+
updates:
4+
- package-ecosystem: github-actions
5+
directory: /
6+
schedule:
7+
interval: daily
8+
labels:
9+
- dependencies
10+
- automerge

.github/workflows/docs.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Documentation
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
docs:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Update apt
11+
run: sudo apt-get update
12+
- name: Install apt deps
13+
run: sudo apt-get install -y gtk-doc-tools
14+
- name: Configure build
15+
run: ./configure
16+
- name: Build docs
17+
run: |
18+
make -C devel-docs docs > /dev/null
19+
find devel-docs/html/ -type f -name '*.html' -print0 | xargs -r -0 sed -i 's@/libenca/@/doc/@'
20+
- name: Deploy
21+
uses: peaceiris/actions-gh-pages@v3
22+
if: github.event_name == 'push' && github.event.ref == 'refs/heads/master'
23+
with:
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
publish_dir: ./devel-docs/html/

0 commit comments

Comments
 (0)