fapping.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. uses: flipperdevices/flipperzero-ufbt-action@v0.1.4
  26. id: build-app
  27. with:
  28. if: ${{ github.ref == 'refs/heads/dev' }}
  29. sdk-channel: dev
  30. elif: ${{ github.ref == 'refs/heads/master' }}
  31. sdk-branch: dev
  32. - name: Upload app artifacts
  33. uses: actions/upload-artifact@v3
  34. with:
  35. name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}
  36. path: ${{ steps.build-app.outputs.fap-artifacts }}
  37. # Release step
  38. - name: Create GitHub Release and Upload FAP
  39. uses: softprops/action-gh-release@v1
  40. if: startsWith(github.ref, 'refs/tags/')
  41. with:
  42. files: ${{ steps.build-app.outputs.fap-artifacts }}