forked from openfoodfacts/openfoodfacts-server
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (27 loc) · 906 Bytes
/
generate-doc.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
name: Documentation
on:
push:
branches: ["main"]
jobs:
documentation:
name: Generate documentation
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/[email protected]
- name: Install Perl requirements
run: |
sudo apt-get update
sudo apt-get install perl perl-doc cpanminus libmodern-perl-perl
- name: "Setup local::lib"
run: |
cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
- name: Run generate_perl_html_doc_from_pod.pl
run: |
perl -CS -I lib scripts/generate_perl_html_doc_from_pod.pl
- name: Deploy API documentation to Github Pages
uses: JamesIves/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: "gh-pages"
folder: html/files/doc/perl