fapping.yaml 1.3 KB

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