Always generate the documentation, so it is always in sync with the master branch

This commit is contained in:
Kristian Sloth Lauszus 2020-11-18 20:20:00 +01:00
parent c8ef5d5550
commit 4e8d5e8a06

View file

@ -43,8 +43,7 @@ jobs:
env: env:
PLATFORMIO_CI_SRC: ${{ matrix.example }} PLATFORMIO_CI_SRC: ${{ matrix.example }}
PLATFORMIO_BUILD_FLAGS: -DWIICAMERA -DDEBUG_USB_HOST -Wall -Werror PLATFORMIO_BUILD_FLAGS: -DWIICAMERA -DDEBUG_USB_HOST -Wall -Werror
deploy: doc:
needs: [build]
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'
steps: steps:
@ -59,7 +58,7 @@ jobs:
sed -i 's/@YuuichiAkagawa/\\@YuuichiAkagawa/' README.md sed -i 's/@YuuichiAkagawa/\\@YuuichiAkagawa/' README.md
doxygen doc/Doxyfile doxygen doc/Doxyfile
touch doc/html/.nojekyll touch doc/html/.nojekyll
- name: Deploy - name: Deploy documentation
uses: peaceiris/actions-gh-pages@v3 uses: peaceiris/actions-gh-pages@v3
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}