forked from Dynatrace/ufo-esp32
-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (55 loc) · 1.81 KB
/
build_version.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Dynatrace UFO build and store the version
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Output results
run: |
ls -l
- name: Data to header file conversion
run: |
python data2h.py data/index.html main/indexhtml.h
python data2h.py data/material-design-icons.ttf main/fontttf.h
python data2h.py data/material-design-icons.woff main/fontwoff.h
python data2h.py data/material-design-icons.svg main/fontsvg.h
python data2h.py data/material-design-icons.eot main/fonteot.h
python data2h.py data/cert.pem main/certpem.h
python data2h.py data/key.pem main/keypem.h
- name: esp-idf build
uses: espressif/esp-idf-ci-action@main
with:
esp_idf_version: v3.3.1
path: '.'
- name: List build artefacts
run: |
ls -l build/
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%h %d %Y - %H:%M:%S')"
- name: Update version.json file
uses: jossef/action-set-json-field@v1
with:
file: nightly/version.json
field: version
value: ${{ steps.date.outputs.date }}
# - name: Store Artifacts
# uses: actions/upload-artifact@v2
# with:
# name: ufo-esp32.bin
# path: |
# build/ufo-esp32.bin
- name: Copy firmware to nightly folder
run: |
cp build/ufo-esp32.bin nightly/ufo-esp32.bin
git config --global user.email "[email protected]"
git config --global user.name "wolfgangB33r"
git add . -A
git commit -m "nightly build"
git push