From fbd10e8f48fdfcbe1d677ceffe307ac3da6cfa60 Mon Sep 17 00:00:00 2001 From: AnonymusRaccoon Date: Thu, 13 Feb 2020 19:02:16 +0100 Subject: [PATCH] Adding a doc deployer --- .github/workflows/doc.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/doc.yml diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml new file mode 100644 index 0000000..bf72f0d --- /dev/null +++ b/.github/workflows/doc.yml @@ -0,0 +1,28 @@ +name: Update the documentation + +on: + push: + branches: + - master + +jobs: + Building: + runs-on: [ubuntu-latest] + + steps: + - uses: actions/checkout@v1 + - name: Install Doxygen + run: sudo apt-get install --yes doxygen + - name: Update the docs + run: doxygen Doxyfile + - name: Deploy + run: + git config --global user.email "${GITHUB_ACTOR}@github.com"; + git config --global user.name "${GITHUB_ACTOR}"; + git checkout -B gh-pages; + git add -A; + git commit -m "Deploying the doc"; + git remote set-url --push origin https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/Gegel85/GameJam2020; + git push origin gh-pages --quiet --force; + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file