Skip to content

Commit b2e8fe9

Browse files
committed
Harden PhantomKit and add release docs
1 parent 893f65a commit b2e8fe9

307 files changed

Lines changed: 443 additions & 12702 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@ name: Build Firmware
33
on:
44
push:
55
branches: [ main ]
6+
tags:
7+
- 'v*.*.*'
68
pull_request:
79
branches: [ main ]
810

11+
permissions:
12+
contents: write
13+
914
jobs:
1015
build:
1116
runs-on: ubuntu-latest
@@ -32,3 +37,31 @@ jobs:
3237
3338
- name: Compile firmware
3439
run: pio run
40+
41+
- name: Build filesystem image
42+
run: pio run --target buildfs
43+
44+
- name: Prepare release assets
45+
if: startsWith(github.ref, 'refs/tags/')
46+
run: |
47+
mkdir -p release
48+
cp .pio/build/nodemcuv2/firmware.bin release/phantomkit-${{ github.ref_name }}-firmware.bin
49+
cp .pio/build/nodemcuv2/littlefs.bin release/phantomkit-${{ github.ref_name }}-littlefs.bin
50+
cd release
51+
sha256sum *.bin > SHA256SUMS.txt
52+
53+
- name: Upload CI artifact
54+
uses: actions/upload-artifact@v4
55+
with:
56+
name: phantomkit-firmware
57+
path: |
58+
.pio/build/nodemcuv2/firmware.bin
59+
.pio/build/nodemcuv2/littlefs.bin
60+
if-no-files-found: error
61+
62+
- name: Publish GitHub Release
63+
if: startsWith(github.ref, 'refs/tags/')
64+
uses: softprops/action-gh-release@v2
65+
with:
66+
files: release/*
67+
generate_release_notes: true

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.pio/
2+
.vscode/
3+
*.bin
4+
*.elf
5+
*.map
6+
*.log
7+
.DS_Store
8+
Thumbs.db
-431 KB
Binary file not shown.
-46 KB
Binary file not shown.
-3.21 KB
Binary file not shown.
-2.97 KB
Binary file not shown.
-42.7 KB
Binary file not shown.
-47.6 KB
Binary file not shown.
-1.98 KB
Binary file not shown.
-10.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)