build&push-beta.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. name: Build and Upload FAP to Release
  2. on:
  3. workflow_dispatch:
  4. inputs:
  5. version:
  6. description: 'Version number to use for the release'
  7. required: true
  8. default: '1.0.0'
  9. branches:
  10. - dev
  11. permissions:
  12. contents: write
  13. jobs:
  14. build-and-upload:
  15. name: Build and Upload FAP
  16. runs-on: ubuntu-latest
  17. steps:
  18. - name: Checkout Repository
  19. uses: actions/checkout@v3
  20. with:
  21. ref: dev
  22. - name: Set up Python
  23. uses: actions/setup-python@v4
  24. with:
  25. python-version: '3.x'
  26. - name: Install UFBT
  27. run: |
  28. python3 -m pip install --upgrade pip
  29. pip install ufbt
  30. - name: Initialize UFBT Environment
  31. run: |
  32. ufbt update
  33. ufbt vscode_dist
  34. - name: Build FAP Applications
  35. run: ufbt faps
  36. - name: Upload Build Outputs to Release
  37. run: |
  38. gh release upload v${{ github.event.inputs.version }} /home/runner/.ufbt/build/metroflip.fap
  39. env:
  40. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}