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. - name: Checkout code
  13. uses: actions/checkout@v4
  14. with:
  15. fetch-depth: 0
  16. lfs: true
  17. - name: Setup Python
  18. uses: actions/setup-python@v4
  19. with:
  20. python-version: '3.11'
  21. - name: Build Flipper Application Package (.fap)
  22. id: build-app
  23. uses: flipperdevices/flipperzero-ufbt-action@v0.1.4
  24. with:
  25. sdk-branch: ${{ github.ref == 'refs/heads/dev' && 'dev' || '' }}
  26. - name: Upload app artifacts
  27. uses: actions/upload-artifact@v3
  28. with:
  29. name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}
  30. path: ${{ steps.build-app.outputs.fap-artifacts }}
  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 }}