mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-10 17:59:53 +03:00
workflow changes
This commit is contained in:
55
.github/workflows/release_esp32_stable.yml
vendored
Normal file
55
.github/workflows/release_esp32_stable.yml
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
name: Release Stable ESP32
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
branches: [ stable_esp32 ]
|
||||
|
||||
jobs:
|
||||
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Version
|
||||
id: fetch_version
|
||||
run: |
|
||||
version=`grep -E '^#define EMSESP_APP_VERSION' ./src/version.h | awk '{print $3}' | sed 's/"//g'`
|
||||
echo "::set-output name=s::$version"
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v1
|
||||
|
||||
- name: Install
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -U platformio
|
||||
platformio upgrade
|
||||
platformio update
|
||||
|
||||
- name: Build web
|
||||
run: |
|
||||
cd interface
|
||||
npm install
|
||||
npm run build
|
||||
|
||||
- name: Build images
|
||||
run: |
|
||||
platformio run -e esp32-ci
|
||||
|
||||
- name: Changelog
|
||||
run: cat RELEASENOTES.md CHANGELOG_LATEST.md > BODY.txt
|
||||
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
body_path: BODY.txt
|
||||
name: EMS-ESP v${{steps.fetch_version.outputs.s}} (ESP32)
|
||||
tag_name: v${{steps.fetch_version.outputs.s}}
|
||||
prerelease: false
|
||||
files: |
|
||||
./build/firmware/*.*
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user