-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (34 loc) · 1.23 KB
/
fapping.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build and Release FAP
on:
push:
branches:
- main # Adjust this to your preference, e.g., releases/*
jobs:
build:
runs-on: ubuntu-latest
steps:
- 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 }}