]> git.earman.xyz Git - sensor-watch.git/commitdiff
add github pages pipeline
authorWillian Paixao <willian@ufpa.br>
Sat, 11 Dec 2021 20:29:27 +0000 (21:29 +0100)
committerWillian Paixao <willian@ufpa.br>
Sat, 11 Dec 2021 21:10:04 +0000 (22:10 +0100)
.github/workflows/build.yml [new file with mode: 0644]
.github/workflows/gh-pages.yml [new file with mode: 0644]
.github/workflows/main.yml [deleted file]

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644 (file)
index 0000000..1eab21f
--- /dev/null
@@ -0,0 +1,27 @@
+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
diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml
new file mode 100644 (file)
index 0000000..89d676a
--- /dev/null
@@ -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/
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
deleted file mode 100644 (file)
index 7112d82..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-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