Skip to content

Commit

Permalink
CI: push firmware to website repo #2
Browse files Browse the repository at this point in the history
  • Loading branch information
jschroeter committed Jun 21, 2024
1 parent 754614f commit fb9c594
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/firmware.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
with:
source-directory: './firmware/esp32/gdoor/.pio/build/GDOOR_ESP32MINI/web'
target-directory: 'assets/firmware'
destination-github-username: 'gdoor-org'
destination-repository-name: 'gdoor-org.github.io'
target-branch: main
user-name: 'github-actions[bot]'
Expand Down
2 changes: 1 addition & 1 deletion firmware/esp32/gdoor/merge_firmware.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def merge_bin(source, target, env):
# build web flasher manifest
with open(MANIFEST_JSON, 'r', encoding='utf-8') as json_file:
manifest = json.load(json_file)
manifest["version"] = env.get("GDOOR_VERSION", "dev")
manifest["version"] = os.environ.get("GDOOR_VERSION", "dev")

with open(MANIFEST_JSON_RESULT, 'w', encoding='utf-8') as json_file:
json.dump(manifest, json_file)
Expand Down

0 comments on commit fb9c594

Please sign in to comment.