forked from neomutt/neomutt
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (57 loc) · 1.58 KB
/
doxygen.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Doxygen
on:
schedule:
- cron: '10 3 * * 1'
# Mondays at 03:10
workflow_dispatch:
jobs:
doxygen:
name: Update Code Docs
runs-on: ubuntu-latest
container: debian:sid
steps:
- name: Check Secret
run: |
[ -n "${{ secrets.DOXYGEN_DEPLOY_KEY }}" ]
- name: Install Build Software
run: |
apt-get update
apt install -y doxygen graphviz git rsync
- name: Set Up Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "Richard Russon (DEPLOY)"
- name: Checkout NeoMutt
uses: actions/checkout@v2
with:
repository: neomutt/neomutt
path: neomutt
fetch-depth: 0
- name: Checkout Doxygen Scripts
uses: actions/checkout@v2
with:
repository: neomutt/action-doxygen
path: action-doxygen
- name: Checkout Code Docs
uses: actions/checkout@v2
with:
repository: neomutt/code
path: code
persist-credentials: false
# otherwise GITHUB_TOKEN will be used, rather than the Personal Access Token
- name: Generate Docs
run: |
cd neomutt
ln -s ../action-doxygen
action-doxygen/bin/generate.sh
ls -l html/index.html
- name: Commit Docs
run: |
action-doxygen/bin/commit.sh neomutt/html code
- name: Push to Code Docs
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.DOXYGEN_DEPLOY_KEY }}
branch: main
directory: code
repository: neomutt/code