-
Notifications
You must be signed in to change notification settings - Fork 59
48 lines (40 loc) · 1.29 KB
/
main.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
name: Build
# on:
# push:
# branches: [main]
jobs:
ufbt-build-action:
runs-on: ubuntu-latest
name: "ufbt: Build for dev channel"
strategy:
matrix:
include:
- name: dev channel
sdk-channel: dev
steps:
- uses: actions/checkout@v4
with:
ref: main
sparse-checkout: FindMyFlipper
- name: Build with ufbt
uses: flipperdevices/[email protected]
id: build-app
with:
# Set to 'release' to build for latest published release version
sdk-channel: ${{ matrix.sdk-channel }}
app-dir: FindMyFlipper
- name: Get commit message
run: echo "COMMIT_MESSAGE=$(git log --format=%B -n 1 ${{ github.event.after }})" >> $GITHUB_ENV
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
uses: softprops/action-gh-release@v2
with:
name: ${{ env.COMMIT_MESSAGE }}
token: ${{ secrets.GITHUB_TOKEN }}
files: ${{ steps.build-app.outputs.fap-artifacts }}
generate_release_notes: true
tag_name: ${{steps.tag_version.outputs.new_tag}}