-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.18 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
name: Build and Release project on tag push
on:
push:
tags:
- 'v*.*.*'
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Build PlatformIO project
run: |
cd ./buderus-controller
pio run
mv .pio/build/esp32dev/{firmware.bin,buderus-fw-${{ github.ref_name }}.bin}
mv .pio/build/esp32dev/{firmware.elf,buderus-fw-${{ github.ref_name }}.elf}
- name: Create new release with build artifact
uses: softprops/action-gh-release@v1
with:
files: |
./buderus-controller/.pio/build/esp32dev/buderus-fw-*
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ github.ref }}
name: Release ${{ github.ref_name}}
body: "Release ${{ github.ref_name }}"