-
Notifications
You must be signed in to change notification settings - Fork 8
35 lines (33 loc) · 894 Bytes
/
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
name: Release
on:
release:
types: [published]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
config_name: [esp01s, esp32wroom32d]
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Build
id: esphome-build
uses: esphome/build-action@v4.0.4
with:
yaml-file: "example/${{ matrix.config_name }}.yaml"
version: 2024.11.3
platform: linux/amd64
- name: Keep Bin
run: |
find ${{ steps.esphome-build.outputs.name }} -type f ! -name "*.bin" -exec rm -f {} +
- name: Upload file to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./${{ steps.esphome-build.outputs.name }}
tag: ${{ github.ref }}
overwrite: true