Skip to content

Commit 0f123ea

Browse files
committed
fix: use DEPLOY_TOKEN to trigger site redeploy after firmware build
2 parents f2d7203 + b4be4d7 commit 0f123ea

2 files changed

Lines changed: 6 additions & 15 deletions

File tree

.github/workflows/release-firmware.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ jobs:
8080
git config user.name "github-actions[bot]"
8181
git config user.email "github-actions[bot]@users.noreply.github.com"
8282
git add website/public/firmware/
83-
git commit -m "firmware: update binaries for ${GITHUB_REF#refs/tags/}"
84-
git push origin master
83+
git diff --staged --quiet || git commit -m "firmware: update binaries for ${GITHUB_REF#refs/tags/}"
84+
git push https://x-access-token:${{ secrets.DEPLOY_TOKEN }}@github.com/makepkg/SecureGen.git master
8585
8686
- name: Create GitHub Release
8787
uses: softprops/action-gh-release@v2

website/public/firmware/manifest.json

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,14 @@
11
{
22
"name": "SecureGen",
3-
"version": "latest",
3+
"version": "v2.0.0",
44
"new_install_prompt_erase": true,
55
"builds": [
66
{
77
"chipFamily": "ESP32",
88
"parts": [
9-
{
10-
"path": "https://github.com/makepkg/SecureGen/releases/latest/download/bootloader.bin",
11-
"offset": 4096
12-
},
13-
{
14-
"path": "https://github.com/makepkg/SecureGen/releases/latest/download/partitions.bin",
15-
"offset": 32768
16-
},
17-
{
18-
"path": "https://github.com/makepkg/SecureGen/releases/latest/download/firmware.bin",
19-
"offset": 65536
20-
}
9+
{ "path": "bootloader.bin", "offset": 4096 },
10+
{ "path": "partitions.bin", "offset": 32768 },
11+
{ "path": "firmware.bin", "offset": 65536 }
2112
]
2213
}
2314
]

0 commit comments

Comments
 (0)