Skip to content

v0.2.7.16

v0.2.7.16 #3

name: Build and release
on:
push:
branches:
- main
jobs:
build-and-release:
strategy:
fail-fast: false
matrix:
idf_target:
- esp32
- esp32s3
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Build ESP-IDF Firmware
uses: espressif/esp-idf-ci-action@v1
with:
command: /app/${{ github.repository }}/patch-esp-idf.sh && /app/${{ github.repository }}/Firmware/BeamStalker/build.sh
esp_idf_version: v4.4
target: ${{ matrix.idf_target }}
path: 'Firmware/BeamStalker'
- name: Set name and tag_name
id: set_name
run: |
if [[ "${{ github.event_name }}" == "pull_request" && -n "${{ github.event.pull_request.title }}" ]]; then
echo "name=${{ github.event.pull_request.title }}" >> $GITHUB_ENV
echo "tag_name=${{ github.event.pull_request.title }}" >> $GITHUB_ENV
elif [[ -n "${{ github.event.head_commit.message }}" ]]; then
echo "name=${{ github.event.head_commit.message }}" >> $GITHUB_ENV
echo "tag_name=${{ github.event.head_commit.message }}" >> $GITHUB_ENV
else
echo "name=BeamStalker" >> $GITHUB_ENV
echo "tag_name=vX" >> $GITHUB_ENV
fi
- name: Create Release
uses: softprops/action-gh-release@v1
with:
name: ${{ env.name }}
tag_name: ${{ env.tag_name }}
fail_on_unmatched_files: true
files: |
Firmware/BeamStalker/bin/BeamStalker*.bin