Skip to content

Commit 5a3d921

Browse files
committed
feature: build app using CICD
1 parent 9920e46 commit 5a3d921

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/main.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
- master
6+
name: "Build & Release"
7+
jobs:
8+
build:
9+
name: Build & Release
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- uses: actions/setup-java@v3
15+
with:
16+
distribution: 'zulu'
17+
java-version: '12'
18+
- uses: subosito/flutter-action@v2
19+
with:
20+
channel: 'stable'
21+
architecture: x64
22+
23+
- run: flutter build apk --release
24+
25+
- name: Push to Releases
26+
uses: ncipollo/release-action@v1
27+
with:
28+
artifacts: "build/app/outputs/apk/release/*"
29+
tag: v1.0.${{ github.run_number }}
30+
token: ${{ secrets.TOKENEXCELR }}

0 commit comments

Comments
 (0)