TheAlgorithms-C/.github/workflows/gh-pages.yml

31 lines
742 B
YAML
Raw Normal View History

2020-05-26 07:33:27 +08:00
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
2020-05-26 07:38:44 +08:00
- name: Install requirements
2020-05-26 07:43:33 +08:00
run: sudo apt -qq install doxygen graphviz ninja-build
2020-05-26 07:33:27 +08:00
- 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"
2020-05-26 08:00:42 +08:00
clean: false
# - name: cleanup
# run: ls -lah && rm -r !("build")
- name: commit
run: mv ./build/html . && rm -rf ./build && ls -lah