Files
EMS-ESP32/.github/workflows/test_release.yml
2025-08-29 09:06:32 +02:00

75 lines
1.8 KiB
YAML

name: 'Build test release'
on:
workflow_dispatch:
push:
branches:
- 'dev2'
permissions:
contents: read
jobs:
pre-release:
name: 'Build Test Release'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Install python 3.13
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22
- name: Checkout repository
uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable pnpm
- name: Get the EMS-ESP version
id: build_info
run: |
version=`grep -E '^#define EMSESP_APP_VERSION' ./src/emsesp_version.h | awk -F'"' '{print $2}'`
echo "VERSION=$version" >> $GITHUB_OUTPUT
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install -U platformio
python -m pip install intelhex
- name: Build the WebUI
run: |
cd interface
pnpm install
pnpm typesafe-i18n --no-watch
sed -i "s/= 'pl'/= 'en'/" ./src/i18n/i18n-util.ts
pnpm build
pnpm webUI
- name: Build all target environments
run: |
platformio run
env:
NO_BUILD_WEBUI: true
- name: Create GitHub Release
id: 'automatic_releases'
uses: emsesp/action-automatic-releases@v1.0.0
with:
repo_token: '${{ secrets.GITHUB_TOKEN }}'
title: Test Build v${{steps.build_info.outputs.VERSION}}
automatic_release_tag: 'test'
prerelease: true
files: |
CHANGELOG_LATEST.md
./build/firmware/*.*