Skip to content
This repository has been archived by the owner on Oct 5, 2024. It is now read-only.

Commit

Permalink
Replace Doxygen with docs for ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
emi420 committed Oct 23, 2023
1 parent aa665a9 commit 27674aa
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 80 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/ci.yml

This file was deleted.

67 changes: 21 additions & 46 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,25 @@
# This is a basic workflow to help you get started with Actions

name: Doxygen Action

# Controls when the action will run.
name: Docs Action
on:
push:
branches: [ master ]

# A workflow run is made up of one or more jobs that can run
# sequentially or in parallel
branches:
- master
- main
permissions:
contents: write
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu:kinetic
# Steps represent a sequence of tasks that will be executed
# as part of the job
deploy:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your
# job can access it
- uses: actions/checkout@v2

- name: Start Docker Compose
run: cd docker && docker-compose up -d

- name: Create Doxyfile
run: docker-compose -f docker-compose.yml exec -T underpass sh -c "cd /code && ./autogen.sh && ./configure && make docs/Doxyfile -j `nproc`"

- name: Doxygen Action
uses: mattnotmitt/[email protected]
with:
doxyfile-path: ./docs/Doxyfile
working-directory: .

- name: Debug
run: ls -la ./html

- name: Deploy HTML
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./html
publish_branch: gh-pages

on-failure:
runs-on: ubuntu-20.04
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- run: echo 'The docker build workflow failed'
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force
2 changes: 1 addition & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:

build:

runs-on: ubuntu:kinetic
runs-on: ubuntu-latest

steps:

Expand Down

0 comments on commit 27674aa

Please sign in to comment.