-
Notifications
You must be signed in to change notification settings - Fork 5
55 lines (47 loc) · 1.57 KB
/
build.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
47
48
49
50
51
52
53
54
55
name: "FAP: Build and lint"
on:
push:
branches:
- master
jobs:
ufbt-build-action:
runs-on: ubuntu-latest
name: 'ufbt: Build for Master branch'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build with ufbt for standard firmware
uses: flipperdevices/[email protected]
id: build-standard
with:
sdk-channel: release
- name: Build with ufbt for Flipper Unleashed
uses: flipperdevices/[email protected]
id: build-unleashed
with:
sdk-index-url: https://up.unleashedflip.com/directory.json
sdk-channel: release
- name: Lint sources
uses: flipperdevices/[email protected]
with:
skip-setup: true
task: lint
- name: Create a new tag
run: |
TAG_NAME=${{ github.event.repository.name }}-$(date +'%Y%m%d%H%M%S')
git config --global user.name 'tag-bot'
git config --global user.email 'tag-bot@mail'
git tag $TAG_NAME
git push https://github.com/mentoster/Flipper-hero.git $TAG_NAME
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV
- name: Upload Release Assets
uses: softprops/action-gh-release@v1
with:
files: |
${{ steps.build-standard.outputs.fap-artifacts }}
${{ steps.build-unleashed.outputs.fap-artifacts }}
tag_name: ${{ env.TAG_NAME }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}