forked from yamsergey/yamsergey.termux.flutter
-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (31 loc) · 910 Bytes
/
build.yml
File metadata and controls
38 lines (31 loc) · 910 Bytes
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
name: build
on:
workflow_dispatch:
jobs:
Ubuntu:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: install deps
run: sudo apt update && sudo apt install libfreetype-dev ninja-build -y
- name: setup depot-tools
uses: newkdev/setup-depot-tools@v1.0.1
- name: install python requirements
run: pip install -r requirements.txt
- name: build
run: python build.py
- name: parse tag
id: parser
run: |
TAG=$(NO_RECORD=1 python build.py tag)
echo "TAG=$TAG" >> $GITHUB_OUTPUT
echo "TITLE=Flutter $TAG" >> $GITHUB_OUTPUT
- name: release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.parser.outputs.TAG }}
name: ${{ steps.parser.outputs.TITLE }}
files: '**/*.deb'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}