build&push-beta.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. permissions:
  10. contents: write
  11. jobs:
  12. build-and-upload:
  13. name: Build and Upload FAP
  14. runs-on: ubuntu-latest
  15. steps:
  16. - name: Checkout Repository
  17. uses: actions/checkout@v3
  18. - name: Set up Python
  19. uses: actions/setup-python@v4
  20. with:
  21. python-version: '3.x'
  22. - name: Install UFBT
  23. run: |
  24. python3 -m pip install --upgrade pip
  25. pip install ufbt
  26. - name: Initialize UFBT Environment
  27. run: |
  28. ufbt update
  29. ufbt vscode_dist
  30. - name: Build FAP Applications
  31. run: ufbt faps
  32. - name: Upload Build Outputs to Release
  33. run: |
  34. gh release upload v${{ github.event.inputs.version }} /home/runner/.ufbt/build/metroflip.fap
  35. env:
  36. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}