Skip to content

Commit 638dc90

Browse files
committed
edited build.yaml & extra_script.py for gui-v2 change
1 parent 80e1ec5 commit 638dc90

File tree

2 files changed

+5
-24
lines changed

2 files changed

+5
-24
lines changed

.github/workflows/build.yaml

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ permissions:
88
on:
99
workflow_dispatch:
1010
inputs:
11-
v1_ref:
12-
required: true
13-
description: The branch/tag for the v1 UI
14-
default: master
1511
v2_ref:
1612
required: true
1713
description: The branch/tag for the v2 UI
@@ -59,13 +55,9 @@ jobs:
5955
- openevse_esp32-poe-iso
6056
- openevse_esp32-heltec-wifi-lora-v2
6157
gui:
62-
- name: gui-v1
63-
repo: OpenEVSE/openevse_wifi_gui
64-
build_flags: ""
65-
ref: ${{ inputs.v1_ref }}
6658
- name: gui-v2
67-
repo: KipK/openevse-gui-v2
68-
build_flags: "-D DISABLE_WIFI_PORTAL -D WEB_SERVER_ROOT_PAGE_INDEX"
59+
repo: OpenEVSE/openevse-gui-v2
60+
build_flags: ""
6961
ref: ${{ inputs.v2_ref }}
7062

7163
steps:
@@ -129,7 +121,7 @@ jobs:
129121
- name: Upload output to GitHub
130122
uses: actions/upload-artifact@v3
131123
with:
132-
name: ${{ matrix.env }}_${{ matrix.gui.name }}.bin
124+
name: ${{ matrix.env }}.bin
133125
path: .pio/build/${{ matrix.env }}/firmware.bin
134126

135127
release:
@@ -161,18 +153,7 @@ jobs:
161153
prerelease: true
162154
title: Development Build
163155
files: |
164-
*gui-v1.bin
165-
166-
- name: Upload assets to the v2 GUI release
167-
if: github.ref_name == 'master'
168-
uses: "marvinpinto/action-automatic-releases@latest"
169-
with:
170-
repo_token: "${{ secrets.GITHUB_TOKEN }}"
171-
automatic_release_tag: v2_gui
172-
prerelease: true
173-
title: V2 GUI pre-release
174-
files: |
175-
*gui-v2.bin
156+
*.bin
176157
177158
- name: Upload assets to release
178159
if: startsWith(github.ref_name, 'v')

scripts/extra_script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def process_html_app(source, dest, env):
178178

179179
gui_name = environ.get("GUI_NAME")
180180
if gui_name in (None, ""):
181-
gui_name = "gui"
181+
gui_name = "gui-v2"
182182

183183
gui_dir = join(env.subst("$PROJECT_DIR"), gui_name)
184184
dist_dir = join(gui_dir, "dist")

0 commit comments

Comments
 (0)