TheAlgorithms-C/.github/workflows/gh-pages.yml
2020-05-25 20:11:30 -04:00

29 lines
713 B
YAML

name: Doxygen CI
on: [push]
# push:
# branches: [ master ]
# pull_request:
# branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
submodules: true
- name: Install requirements
run: sudo apt -qq install doxygen graphviz ninja-build
- name: configure
run: cmake -G Ninja -B ./build -S .
- name: build
run: cmake --build build -t doc
- name: gh-pages
uses: actions/checkout@master
with:
ref: "gh-pages"
clean: false
- name: move files
run: rm -rf !("build" | ".git") && mv ./build/html/*.* . && rm -rf ./build && ls -lah