-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (44 loc) · 1.17 KB
/
release.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
name: Release Workflow
on:
push:
tags:
- '*'
jobs:
create-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install PlatformIO
run: |
pip install platformio
platformio update
- name: Build all platforms
run: platformio run
- name: Build FS Images
run: |
cp -r ./data-template/ ./data/
platformio run -t buildfs
- name: Archive binaries
run: |
mkdir -p binaries/esp32dev binaries/esp8266 binaries/esp32s3
mv .pio/build/esp32dev/*.bin binaries/esp32dev/
mv .pio/build/esp8266/*.bin binaries/esp8266/
mv .pio/build/esp32s3/*.bin binaries/esp32s3/
- name: Create Release
id: create_release
uses: meeDamian/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
files: >
./binaries/esp32dev/
./binaries/esp8266/
./binaries/esp32s3/
gzip: folders