fapping.yaml 1.1 KB

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