fapping.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name: Build and Release FAP
  2. on:
  3. push:
  4. tags:
  5. - 'v*.*'
  6. permissions:
  7. contents: write
  8. jobs:
  9. build:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - uses: actions/checkout@v4
  13. with:
  14. fetch-depth: 0
  15. lfs: true
  16. - name: Setup Python
  17. uses: actions/setup-python@v4
  18. with:
  19. python-version: '3.11'
  20. - name: Build Flipper Application Package (.fap)
  21. uses: flipperdevices/flipperzero-ufbt-action@v0.1.3
  22. id: build-app
  23. with:
  24. sdk-branch: 0.99.0
  25. - name: Upload app artifacts
  26. uses: actions/upload-artifact@v3
  27. with:
  28. name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}
  29. path: ${{ steps.build-app.outputs.fap-artifacts }}
  30. # Release step
  31. - name: Create GitHub Release and Upload FAP
  32. uses: softprops/action-gh-release@v1
  33. if: startsWith(github.ref, 'refs/tags/')
  34. with:
  35. files: ${{ steps.build-app.outputs.fap-artifacts }}