Update fapping.yml #40
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Release FAP | |
on: | |
push: | |
tags: | |
- 'v*.*.*' | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- name: ofw-dev | |
sdk-channel: dev | |
- name: ofw-release | |
sdk-channel: release | |
- name: momentum-firmware | |
sdk-index-url: https://up.momentum-fw.dev/firmware/directory.json | |
sdk-channel: release | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
lfs: true | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' # Set up the Python version | |
- name: 'ufbt: Build for ${{ matrix.name }}' | |
uses: flipperdevices/[email protected] | |
id: build-app | |
with: | |
sdk-channel: ${{ matrix.sdk-channel }} | |
sdk-index-url: ${{ matrix.sdk-index-url }} | |
- name: Upload app artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }} | |
path: ${{ steps.build-app.outputs.fap-artifacts }} | |
# Release step | |
#- name: Create GitHub Release and Upload FAP | |
# uses: softprops/action-gh-release@v1 | |
# if: startsWith(github.ref, 'refs/tags/') # Ensures this step only runs for tag pushes | |
# with: | |
# files: ${{ steps.build-app.outputs.fap-artifacts }} | |
- name: Rename FAP file | |
run: | | |
mv ${{ steps.build-app.outputs.fap-artifacts }} "yuricable_pro_max-${{ matrix.name }}.fap" | |
id: rename-file | |
# Release step | |
- name: Create GitHub Release and Upload FAP | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') # Ensures this step only runs for tag pushes | |
with: | |
files: ${{ steps.rename-file.outputs.new-fap-name }} # Use the renamed file here | |
name: ${{ github.event.repository.name }}-${{ matrix.name }}-${{ steps.build-app.outputs.suffix }}.fap |