forked from neomutt/neomutt
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (53 loc) · 1.47 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
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: ghcr.io/neomutt/fedora:38
steps:
- name: Check Secret
run: |
[ -n "${{ secrets.DOXYGEN_DEPLOY_KEY }}" ]
- 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@v4
with:
repository: neomutt/neomutt
path: neomutt
fetch-depth: 0
- name: Checkout Doxygen Scripts
uses: actions/checkout@v4
with:
repository: neomutt/action-doxygen
path: action-doxygen
- name: Checkout Code Docs
uses: actions/checkout@v4
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/github-push-action@master
with:
github_token: ${{ secrets.DOXYGEN_DEPLOY_KEY }}
branch: main
directory: code
repository: neomutt/code