From 8e7ed92d30768a97c3362f878fb97be1e0b7da91 Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Thu, 21 Oct 2021 16:18:26 +1100 Subject: [PATCH] 1st attempt at Doxygen compiling on Actions --- .github/workflows/doxygen.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/doxygen.yml b/.github/workflows/doxygen.yml index 47fdb216..a5abc2ae 100644 --- a/.github/workflows/doxygen.yml +++ b/.github/workflows/doxygen.yml @@ -31,12 +31,14 @@ jobs: working-directory: "." # default is . - name: Commit Doxygen HTML - if: ${{ false }} + if: github.event_name != 'pull_request' + env: + GH_DOXYGEN: ${{ secrets.GH_DOXYGEN }} run: | cd .. git clone https://github.com/speeduino/speeduino-doxygen cp -r speeduino/reference/doxygen/html/* speeduino-doxygen cd speeduino-doxygen git add --all - git commit --allow-empty -m "Deploy code docs to GitHub Pages. Travis build ${TRAVIS_BUILD_NUMBER}" -m "Commit ${TRAVIS_COMMIT}" + git commit --allow-empty -m "Deploy code docs to GitHub repo. Commit ${GITHUB_SHA}" git push --force "https://${GH_DOXYGEN}@github.com/speeduino/speeduino-doxygen" > /dev/null 2>&1