TheAlgorithms-C/.github/workflows/gh-pages.yml
2020-05-25 19:58:51 -04:00

31 lines
741 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: true
# - name: cleanup
# run: ls -lah && rm -r !("build")
- name: commit
run: mv ./build/html . && rm -rf ./build && ls -lah