Skip to content

Commit 04e0332

Browse files
Add GitHub Action Flipper Zero Build
1 parent 32d081a commit 04e0332

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Flipper Zero CI
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Clone ufbt
13+
run: |
14+
git config --global url.https://github.com/.insteadOf git://github.com/
15+
git clone https://github.com/flipperdevices/flipperzero-ufbt.git ../ufbt
16+
- name: Ufbt Build App
17+
run: |
18+
../ufbt/ufbt "fap_$(grep -o 'appid="[a-zA-Z0-9]\+"' application.fam | awk -F '"' '{print $2}')"
19+
- name: Release
20+
uses: softprops/action-gh-release@v1
21+
if: startsWith(github.ref, 'refs/tags/')
22+
with:
23+
files: |
24+
../ufbt/.ufbt/build/**/*.fap

0 commit comments

Comments
 (0)