Skip to content

Mapping Automation

Mapping Automation #31

Workflow file for this run

name: Build and Release
on:
push:
branches: [main]
#paths:
# - 'FindMyFlipper/**'
release:
types: [created]
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
name: "ufbt: Build"
strategy:
matrix:
channel:
- dev
- release
"config":
- { name: "mntm", url: "https://up.momentum-fw.dev/firmware/directory.json" }
- { name: "ul", url: "https://up.unleashedflip.com/directory.json" }
- { name: "ofw", url: "https://update.flipperzero.one/firmware/directory.json" }
steps:
- uses: actions/checkout@v4
- name: Build with ufbt
uses: flipperdevices/[email protected]
id: build-app
with:
indexer-url: ${{ matrix.config.url }}
sdk-channel: ${{ matrix.channel }}
app-dir: FindMyFlipper
- name: Upload build artifacts
if: "github.event_name != 'release'"
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.config.name }}-${{ matrix.channel }}
path: ${{ steps.build-app.outputs.fap-artifacts }}
- name: Attach artifacts to the Draft Release
if: "github.event_name == 'release'"
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
files:
FindMyFlipper-${{ matrix.config.name }}-${{ matrix.channel }}.fap