diff options
author | joeycastillo <joeycastillo@utexas.edu> | 2021-12-14 11:06:29 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-14 11:06:29 -0600 |
commit | e8e9a0e2d86d37fa0354b3475c907eae1bf5a6dd (patch) | |
tree | 323e767d22892bd0a57535a05f1412ac23c9f528 /.github | |
parent | 26617ad90fa633f2dc97785b094160a6bdd3d95e (diff) | |
parent | 9a7582222c4dad5e6b0330136733c70c193cda00 (diff) | |
download | Sensor-Watch-e8e9a0e2d86d37fa0354b3475c907eae1bf5a6dd.tar.gz Sensor-Watch-e8e9a0e2d86d37fa0354b3475c907eae1bf5a6dd.tar.bz2 Sensor-Watch-e8e9a0e2d86d37fa0354b3475c907eae1bf5a6dd.zip |
Merge pull request #24 from willianpaixao/add-github-actions
introduce github actions
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 27 | ||||
-rw-r--r-- | .github/workflows/gh-pages.yml | 22 |
2 files changed, 49 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..1eab21fc --- /dev/null +++ b/.github/workflows/build.yml @@ -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 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/ |