-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (43 loc) · 1.51 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
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
uses: flipperdevices/[email protected]
id: build-app
with:
# Set to 'release' to build for latest published release version
sdk-channel: dev
# You can remove this step if you don't want to check source code formatting
- name: Lint sources
uses: flipperdevices/[email protected]
with:
# skip SDK setup, we already did it in previous step
skip-setup: true
task: lint
- name: Create a new tag
id: create_tag
run: |
TAG_NAME=flipper-hero-$(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 Asset
uses: softprops/action-gh-release@v1
with:
files: ${{ steps.build-app.outputs.fap-artifacts }}
tag_name: ${{ env.TAG_NAME }}
draft: false # Set to false if you don't want to create a draft release
prerelease: false # Mark the release as a prerelease
env:
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}