From 9a7582222c4dad5e6b0330136733c70c193cda00 Mon Sep 17 00:00:00 2001 From: Willian Paixao Date: Sat, 11 Dec 2021 21:29:27 +0100 Subject: [PATCH] add github pages pipeline --- .github/workflows/{main.yml => build.yml} | 8 ++++++-- .github/workflows/gh-pages.yml | 22 ++++++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) rename .github/workflows/{main.yml => build.yml} (85%) create mode 100644 .github/workflows/gh-pages.yml diff --git a/.github/workflows/main.yml b/.github/workflows/build.yml similarity index 85% rename from .github/workflows/main.yml rename to .github/workflows/build.yml index 7112d820..1eab21fc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,10 @@ name: Build -on: [pull_request, push] +on: + pull_request: + push: + branches-ignore: + - gh-pages jobs: build: @@ -19,5 +23,5 @@ jobs: - name: Upload UF2 uses: actions/upload-artifact@v2 with: - name: watch.uf2.uf2 + name: watch.uf2 path: apps/**/build/watch.uf2 diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 00000000..89d676a1 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,22 @@ +name: GitHub Pages + +#on: +# push: +# branches: +# - main +on: [pull_request, push] + +jobs: + gh-pages: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Doxygen Action + uses: mattnotmitt/doxygen-action@v1 + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_branch: gh-pages + publish_dir: docs/