--- /dev/null
+name: Build
+
+on:
+ pull_request:
+ push:
+ branches-ignore:
+ - gh-pages
+
+jobs:
+ build:
+ container:
+ image: ghcr.io/armmbed/mbed-os-env:latest
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Compile starter-project app
+ run: make
+ working-directory: 'apps/starter-project'
+ - name: Compile accelerometer-test app
+ run: make
+ working-directory: 'apps/accelerometer-test'
+ - name: Upload UF2
+ uses: actions/upload-artifact@v2
+ with:
+ name: watch.uf2
+ path: apps/**/build/watch.uf2
--- /dev/null
+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/
+++ /dev/null
-name: Build
-
-on: [pull_request, push]
-
-jobs:
- build:
- container:
- image: ghcr.io/armmbed/mbed-os-env:latest
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v2
- - name: Compile starter-project app
- run: make
- working-directory: 'apps/starter-project'
- - name: Compile accelerometer-test app
- run: make
- working-directory: 'apps/accelerometer-test'
- - name: Upload UF2
- uses: actions/upload-artifact@v2
- with:
- name: watch.uf2.uf2
- path: apps/**/build/watch.uf2