From bb3d4ab9bae2062c31d026b30bbc67e8f542850e Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Sun, 12 Jul 2020 17:31:15 +0300 Subject: [PATCH] mdbx-ci: build github-pages by doxygen. Change-Id: I9d84ca299cf0b8579157f84dae42fcbb09a6f8bc --- .circleci/config.yml | 3 +++ .github/workflows/doxygen-github-pages.yml | 25 ++++++++++++++++++++++ .github/workflows/release-assets.yml | 4 +++- .gitignore | 2 ++ 4 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/doxygen-github-pages.yml diff --git a/.circleci/config.yml b/.circleci/config.yml index 6d46ecef..83832086 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,6 +1,9 @@ version: 2 jobs: build: + branches: + ignore: + - gh-pages docker: - image: circleci/buildpack-deps:20.04 environment: diff --git a/.github/workflows/doxygen-github-pages.yml b/.github/workflows/doxygen-github-pages.yml new file mode 100644 index 00000000..07806980 --- /dev/null +++ b/.github/workflows/doxygen-github-pages.yml @@ -0,0 +1,25 @@ +name: doxygen-github-pages + +on: + push: + branches: master + +jobs: + build: + runs-on: ubuntu-20.04 + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Install doxygen + run: sudo apt install doxygen graphviz fonts-freefont-ttf + - name: Build html docs + run: make doxygen && cp -R .circleci docs/html/ + - name: Deploy gh-pages + uses: JamesIves/github-pages-deploy-action@3.5.7 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH: gh-pages + FOLDER: docs/html + SINGLE_COMMIT: true diff --git a/.github/workflows/release-assets.yml b/.github/workflows/release-assets.yml index 934ab93b..8650eae9 100644 --- a/.github/workflows/release-assets.yml +++ b/.github/workflows/release-assets.yml @@ -11,10 +11,12 @@ name: Upload Release Asset jobs: build: name: Upload Release Asset - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Checkout code uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Build assets run: | make release-assets diff --git a/.gitignore b/.gitignore index fbda93d6..1b664050 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,5 @@ src/version.c src/config.h dist/ *.tar* +docs/Doxyfile +docs/html/