Update fapping.yml #20
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: | |
branches: | |
- main # Adjust this to your preference, e.g., releases/* | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install git-lfs | |
run: | | |
sudo apt install git-lfs build-essential | |
git lfs install | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # Ensure tags are fetched | |
lfs: true # Make sure to add this line to ensure LFS files are correctly pulled | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' # Set up the Python version | |
- name: Build Flipper Application Package (.fap) | |
uses: flipperdevices/[email protected] | |
- name: Create Tag and Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, no need to create your own | |
with: | |
tag_name: ${{ github.ref }}-fap # or any other tag format you prefer | |
release_name: Release ${{ github.ref }} | |
draft: false | |
prerelease: false | |
- 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 }} | |