mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 08:49:52 +03:00
update build scripts
This commit is contained in:
4
.github/workflows/build_firmware.yml
vendored
4
.github/workflows/build_firmware.yml
vendored
@@ -7,7 +7,7 @@ on:
|
|||||||
tags:
|
tags:
|
||||||
# - '*.*.*'
|
# - '*.*.*'
|
||||||
paths:
|
paths:
|
||||||
- 'CHANGELOG_DEV.md'
|
- 'CHANGELOG_LATEST.md'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
@@ -54,7 +54,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Changelog
|
- name: Changelog
|
||||||
run: cat RELEASENOTES_DEV.md CHANGELOG_DEV.md > BODY.txt
|
run: cat RELEASENOTES_DEV.md CHANGELOG_LATEST.md > BODY.txt
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
|
|||||||
2
.github/workflows/check_code.yml
vendored
2
.github/workflows/check_code.yml
vendored
@@ -3,6 +3,8 @@ name: Code Check
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [dev]
|
branches: [dev]
|
||||||
|
paths:
|
||||||
|
- 'src/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
# The branches below must be a subset of the branches above
|
# The branches below must be a subset of the branches above
|
||||||
branches: [dev]
|
branches: [dev]
|
||||||
|
|||||||
56
.github/workflows/release_main.yml
vendored
Normal file
56
.github/workflows/release_main.yml
vendored
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
name: Release Main
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
branches: [ main ]
|
||||||
|
|
||||||
|
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 esp8266
|
||||||
|
platformio run -e esp32
|
||||||
|
|
||||||
|
- 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}}
|
||||||
|
tag_name: v${{steps.fetch_version.outputs.s}}
|
||||||
|
prerelease: false
|
||||||
|
files: |
|
||||||
|
./build/firmware/*.*
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
2
.github/workflows/standalone_build.yml
vendored
2
.github/workflows/standalone_build.yml
vendored
@@ -3,6 +3,8 @@ name: Standalone Build
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ dev ]
|
branches: [ dev ]
|
||||||
|
paths:
|
||||||
|
- 'src/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|||||||
Reference in New Issue
Block a user