Merge branch 'dev' into dev2 #264
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'test-release' | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'dev2' | |
jobs: | |
pre-release: | |
name: 'Automatic test-release build' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Enable Corepack | |
run: corepack enable | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- name: Get EMS-ESP source code and version | |
id: build_info | |
run: | | |
version=`grep -E '^#define EMSESP_APP_VERSION' ./src/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 | |
- name: Build WebUI | |
run: | | |
cd interface | |
yarn install | |
yarn typesafe-i18n --no-watch | |
sed -i "s/= 'pl'/= 'en'/" ./src/i18n/i18n-util.ts | |
yarn build | |
yarn webUI | |
- name: Build all target environments from default_envs | |
run: | | |
platformio run | |
- 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/*.* |