-
Notifications
You must be signed in to change notification settings - Fork 5
35 lines (34 loc) · 1.17 KB
/
gh-page.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: Github pages
on:
push:
branches:
- 'main'
env:
CI: false
jobs:
gh-page-publish:
runs-on: [self-hosted, Linux]
permissions:
contents: write
steps:
- name: Basic info
run: |
echo "Build for ${{ github.ref }} branch in ${{ github.repository }} repository."
echo "Job triggered by ${{ github.event_name }}, on self-hosted ${{ runner.os }}."
echo "Log level: ${{ github.event.inputs.logLevel }}"
echo "Tags: ${{ github.event.inputs.tags }}"
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Build doc
run: |
chmod 755 cli
./cli doc --build doxygen
- name: Doxygen html for github page
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc/doxygen-site
- name: remove build folder
run: rm -rf "${HOME}/actions_github_pages_*"