Skip to content

Commit 745ec3c

Browse files
committed
Feat: add GitHub Actions conf file
add buildapp.yml for build apk and create release with apk
1 parent 2754046 commit 745ec3c

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/buildapp.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: buildapp
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
build:
10+
name: Create Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Set Up flutter
17+
uses: subosito/flutter-action@v1
18+
19+
- name: Get flutter dependencies
20+
run: flutter pub get
21+
22+
- name: Build apk
23+
run: flutter build apk --release
24+
25+
- name: Create release and copy apk
26+
uses: ncipollo/release-action@v1
27+
with:
28+
artifacts: "build/app/outputs/flutter-apk/*-release.apk"
29+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)