Repository navigation
70 lines (60 loc) · 1.82 KB
/
Copy pathdocumentation.yml
File metadata and controls
70 lines (60 loc) · 1.82 KB
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
69
70
name: Documentation
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: documentation-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build user guide and API reference
runs-on: ubuntu-24.04
steps:
- name: Check out sources
uses: actions/checkout@v7
- name: Build existing Jekyll user guide
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
baseurl: /${{ github.event.repository.name }}
- name: Install documentation tools
run: |
sudo apt-get update
sudo apt-get install --yes doxygen graphviz
- name: Build API reference
run: |
bash doc/build-api.sh "$RUNNER_TEMP/intarna-api"
# The Jekyll container creates its output as root.
sudo chown -R "$(id -u):$(id -g)" _site
cp -R "$RUNNER_TEMP/intarna-api/html" _site/api
- name: Check generated documentation
run: |
python3 doc/check-api.py _site/api
test -s _site/index.html
test -s _site/doc/figures/icon-up.28.png
- name: Upload documentation for review and deployment
uses: actions/upload-pages-artifact@v4
with:
path: _site
retention-days: 7
deploy:
name: Publish documentation
if: github.repository == 'BackofenLab/IntaRNA' && github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
needs: build
runs-on: ubuntu-24.04
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy GitHub Pages
id: deployment
uses: actions/deploy-pages@v4