Struan Clark 2 лет назад
Родитель
Сommit
0150732757
2 измененных файлов с 44 добавлено и 4 удалено
  1. 2 4
      .github/workflows/build.yml
  2. 42 0
      .github/workflows/release.yml

+ 2 - 4
.github/workflows/build.yml

@@ -5,8 +5,6 @@ on:
     branches:
       - main
       - develop
-    tags:
-      - 'v[0-9]+.[0-9]+.[0-9]+'
 
 env:
   firmware_version: '0.78.1'
@@ -22,9 +20,9 @@ jobs:
           repository: 'flipperdevices/flipperzero-firmware'
           ref: ${{ env.firmware_version }}
           submodules: true
-      - name: Checkout
+      - name: Checkout FlipBIP
         uses: actions/checkout@v3
         with:
           path: 'applications_user/FlipBIP'
-      - name: Build
+      - name: Build FAPs
         run: ./fbt COMPACT=1 DEBUG=0 faps

+ 42 - 0
.github/workflows/release.yml

@@ -0,0 +1,42 @@
+name: Release
+
+on:
+  push:
+    tags:
+      - 'v[0-9]+.[0-9]+.[0-9]+'
+
+env:
+  firmware_version: '0.78.1'
+
+jobs:
+  build:
+    name: Build
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout Flipper Zero Firmware
+        uses: actions/checkout@v3
+        with:
+          repository: 'flipperdevices/flipperzero-firmware'
+          ref: ${{ env.firmware_version }}
+          submodules: true
+      - name: Checkout FlipBIP
+        uses: actions/checkout@v3
+        with:
+          path: 'applications_user/FlipBIP'
+      - name: Build FAPs
+        run: ./fbt COMPACT=1 DEBUG=0 faps
+      - name: Get tag
+        id: tag
+        uses: dawidd6/action-get-tag@v1
+        with:
+          strip_v: false
+      - name: Publish FlipBIP
+        uses: softprops/action-gh-release@v1
+        with:
+          files: |
+            build/f7-firmware-C/.extapps/FlipBIP.fap
+            applications_user/FlipBIP/README.md
+          name: ${{steps.tag.outputs.tag}}
+          body: Built against Flipper Zero firmware v${{ env.firmware_version }}
+          generate_release_notes: true
+          fail_on_unmatched_files: true