Commit b288f98 1 parent 5dfb36e commit b288f98 Copy full SHA for b288f98
File tree 1 file changed +27
-2
lines changed
1 file changed +27
-2
lines changed Original file line number Diff line number Diff line change 9
9
jobs :
10
10
build-micropython :
11
11
runs-on : ubuntu-latest
12
+ permissions :
13
+ contents : write
12
14
13
15
steps :
14
16
- name : Checkout Repository
26
28
- name : Install libraries
27
29
run : |
28
30
pushd lib/micropython
29
- git submodule update --init lib/berkeley-db-1.xx lib/micropython-lib
31
+ git submodule update --init lib/berkeley-db-1.xx lib/micropython-lib
30
32
popd
31
-
33
+
34
+ - name : Get Version Tag
35
+ id : version_tag
36
+ run : echo "tag=v$(date +'%Y.%m.%d')-build-${GITHUB_RUN_NUMBER}" >> $GITHUB_OUTPUT
32
37
33
38
- name : Building mpy-cross
34
39
run : make -C lib/micropython/mpy-cross
50
55
with :
51
56
name : micropython
52
57
path : boards/OBO_CAR/build/micropython.bin
58
+
59
+ - name : Create release
60
+ id : create-new-obo-car-image-release
61
+ env :
62
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
63
+ tag : ${{ steps.version_tag.outputs.tag }}
64
+ run : |
65
+ gh release create "${{ steps.version_tag.outputs.tag }}" \
66
+ --repo="$GITHUB_REPOSITORY" \
67
+ --title="Obo Car Micropython - ${{ steps.version_tag.outputs.tag }}" \
68
+ --generate-notes
69
+
70
+
71
+ - name : Upload Binary to Release
72
+ env :
73
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
74
+ run : |
75
+ gh release upload "${{steps.version_tag.outputs.tag }}" \
76
+ boards/OBO_CAR/build/micropython.bin
77
+
You can’t perform that action at this time.
0 commit comments