Просмотр исходного кода

Merge branch 'master' of https://github.com/arag0re/fz-eth-helper

* 'master' of https://github.com/arag0re/fz-eth-helper:
  Update fapping.yaml
  Create fapping.yaml
arag0re.eth 1 год назад
Родитель
Сommit
b1efae18ac
1 измененных файлов с 43 добавлено и 0 удалено
  1. 43 0
      .github/workflows/fapping.yaml

+ 43 - 0
.github/workflows/fapping.yaml

@@ -0,0 +1,43 @@
+name: Build and Release FAP
+
+on:
+   push:
+      tags:
+         - 'v*.*'
+
+permissions:
+   contents: write
+
+jobs:
+   build:
+      runs-on: ubuntu-latest
+
+      steps:
+         - uses: actions/checkout@v4
+           with:
+              fetch-depth: 0
+              lfs: true
+
+         - name: Setup Python
+           uses: actions/setup-python@v4
+           with:
+              python-version: '3.11'
+
+         - name: Build Flipper Application Package (.fap)
+           uses: flipperdevices/flipperzero-ufbt-action@v0.1.3
+           id: build-app
+           #with:
+           #  sdk-branch: 0.97.1
+
+         - name: Upload app artifacts
+           uses: actions/upload-artifact@v3
+           with:
+              name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}
+              path: ${{ steps.build-app.outputs.fap-artifacts }}
+
+         # Release step
+         - name: Create GitHub Release and Upload FAP
+           uses: softprops/action-gh-release@v1
+           if: startsWith(github.ref, 'refs/tags/')
+           with:
+              files: ${{ steps.build-app.outputs.fap-artifacts }}