cnorxz/.github/workflows/main.yml

37 lines
967 B
YAML
Raw Normal View History

# This file is based on https://github.com/satu0king/Github-Documentation-With-Doxygen/blob/master/main.yml
name: Doxygen Action
# Trigger workflow only on pushed to master branch:
on:
2024-02-04 19:31:07 +01:00
workflow_dispatch:
push:
2024-02-04 19:33:43 +01:00
branches: [ main ]
jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Doxygen Action
uses: mattnotmitt/doxygen-action@v1.1.0
with:
# Path to Doxyfile
2024-02-04 19:33:43 +01:00
doxyfile-path: "./Doxyfile"
# Working directory
working-directory: "./doc/doxy"
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
2024-02-04 19:53:16 +01:00
publish_dir: ./doc/doxy/html
2024-02-04 19:56:40 +01:00
permissions:
contents: write