-
Notifications
You must be signed in to change notification settings - Fork 10
36 lines (31 loc) · 923 Bytes
/
run-model.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: create-model
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-model:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
- run: pip install -r requirements.txt
# cleans output for later upload only new created tflites.
- run: rm output/*.*
- name: Execute
run: |
jupyter nbconvert --execute --to html dig-class100-s2.ipynb --output-dir output/
- uses: actions/upload-artifact@v3
if: always()
with:
name: notebook-results
path: |
output/*
- uses: actions/upload-artifact@v3
if: always()
with:
name: tflite-model
path: output/*.tflite