-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.65 KB
/
main_action.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
42
43
44
45
46
name: Build and Release on Tag
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Clone Flipperzero Firmware Repository
run: |
git clone https://github.com/flipperdevices/flipperzero-firmware.git
cd flipperzero-firmware
git checkout $(git ls-remote --tags --sort=committerdate 2>/dev/null | grep -o 'tags/.*' | grep -v rc | tail -n1)
- name: Append File to Flipperzero Firmware
run: |
cat ${GITHUB_WORKSPACE}/application.fam >> ${GITHUB_WORKSPACE}/flipperzero-firmware/applications/main/nfc/application.fam
- name: Copy Supported Cards Plugins
run: |
cp -r ${GITHUB_WORKSPACE}/plugins/supported_cards/. ${GITHUB_WORKSPACE}/flipperzero-firmware/applications/main/nfc/plugins/supported_cards/
- name: Build Firmware
run: |
cd ${GITHUB_WORKSPACE}/flipperzero-firmware
./fbt fap_dist
- name: Create Zip File
run: |
cd ${GITHUB_WORKSPACE}/flipperzero-firmware/dist/f7-D/apps_data/nfc/plugins
zip -r plugins.zip . -x hid_parser.fal bip_parser.fal clipper_parser.fal washcity_parser.fal gallagher_parser.fal umarsh_parser.fal itso_parser.fal skylanders_parser.fal all_in_one_parser.fal opal_parser.fal myki_parser.fal troika_parser.fal two_cities_parser.fal plantain_parser.fal aime_parser.fal
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: |
${{ github.workspace }}/flipperzero-firmware/dist/f7-D/apps_data/nfc/plugins/plugins.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}