Skip to content

Commit ca6cae4

Browse files
committed
feat(release): Add FoBE release workflow and vendor configuration
This commit introduces a GitHub Actions workflow for publishing releases of the FoBE project. It includes steps for checking out the repository, setting up Python, and installing necessary packages. Additionally, a vendor.json file is added to define the supported boards. Signed-off-by: Chiho Sin <[email protected]>
1 parent 405e75d commit ca6cae4

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/fobe-release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: FoBE Release
2+
3+
on:
4+
release:
5+
types: published
6+
7+
jobs:
8+
build:
9+
name: Publish Release
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.0.4
20+
with:
21+
python-version: 3.x
22+
23+
- name: Install packaging
24+
run: pip install packaging
25+
26+
- name: Install pyserial
27+
run: pip install pyserial
28+
29+
- name: Build Release
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
RELEASE_BODY: $(cat $GITHUB_WORKSPACE/vendor.json)
33+
run: bash ./.github/scripts/on-release.sh

vendor.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"boards": ["fobe_quill_esp32s3_mesh"],
3+
"vendor": "FoBE"
4+
}

0 commit comments

Comments
 (0)