release.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. name: Release
  2. on:
  3. push:
  4. tags:
  5. - 'v[0-9]+.[0-9]+.[0-9]+'
  6. env:
  7. firmware_version: '0.101.2'
  8. jobs:
  9. build:
  10. name: Build
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Checkout Flipper Zero Firmware
  14. uses: actions/checkout@v3
  15. with:
  16. repository: 'flipperdevices/flipperzero-firmware'
  17. ref: ${{ env.firmware_version }}
  18. submodules: true
  19. - name: Checkout flipper-chess
  20. uses: actions/checkout@v3
  21. with:
  22. path: 'applications_user/flipper-chess'
  23. - name: Build FAPs
  24. run: ./fbt COMPACT=1 DEBUG=0 faps
  25. - name: Check flipper-chess Built
  26. run: test -f build/f7-firmware-C/.extapps/chess.fap
  27. - name: Get Tag
  28. id: tag
  29. uses: dawidd6/action-get-tag@v1
  30. with:
  31. strip_v: false
  32. - name: Publish flipper-chess
  33. uses: softprops/action-gh-release@v1
  34. with:
  35. files: |
  36. build/f7-firmware-C/.extapps/chess.fap
  37. applications_user/flipper-chess/README.md
  38. name: ${{steps.tag.outputs.tag}}
  39. body: Built against Flipper Zero firmware v${{ env.firmware_version }}
  40. generate_release_notes: true
  41. fail_on_unmatched_files: true