forked from aws/s2n-tls
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1.03 KB
/
docs.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
---
name: s2n-tls Documentation
on:
push:
branches: [main]
pull_request:
branches: [main]
merge_group:
types: [checks_requested]
branches: [main]
jobs:
generate-doxygen:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Create Documentation
run: |
.github/s2n_doxygen.sh
- name: Upload documentation to action
# Upload the doxygen artifacts on pull requests to help reviewers easily
# view changes.
if: ${{ github.event_name == 'pull_request' }}
uses: actions/upload-artifact@v3
with:
name: s2n-tls-doxygen
path: |
docs/doxygen/output
- name: Deploy documentation to gh-pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
destination_dir: ./doxygen
publish_dir: ./docs/doxygen/output/html