Skip to content

Build Test

Build Test #22

Workflow file for this run

name: Build
on:
push:
branches: [main]
paths:
- 'FindMyFlipper/**'
jobs:
ufbt-build-action:
runs-on: ubuntu-latest
name: "ufbt: Build for dev channel"
strategy:
matrix:
sdk-channel:
- dev
- release
sdk-url:
- "https://up.momentum-fw.dev/firmware/directory.json"
- "https://up.unleashedflip.com/directory.json"
- "https://update.flipperzero.one/firmware/directory.json"
steps:
- uses: actions/checkout@v4
with:
ref: main
sparse-checkout: FindMyFlipper
- name: Build with ufbt
uses: flipperdevices/[email protected]
id: build-app
with:
# Set to 'release' to build for latest published release version
sdk-channel: ${{ matrix.sdk-channel }}
app-dir: FindMyFlipper
- name: Get commit message
run: echo "COMMIT_MESSAGE=$(git log --format=%B -n 1 ${{ github.event.after }})" >> $GITHUB_ENV
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
uses: softprops/action-gh-release@v2
with:
sdk-channel: ${{ matrix.sdk-channel }}
indexer-url: ${{ matrix.sdk-url }}
name: ${{ env.COMMIT_MESSAGE }}
token: ${{ secrets.GITHUB_TOKEN }}
files: ${{ steps.build-app.outputs.fap-artifacts }}
generate_release_notes: true
tag_name: ${{steps.tag_version.outputs.new_tag}}