Skip to content

Commit b1f9486

Browse files
added workflow
1 parent be635dc commit b1f9486

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
flutter_test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: subosito/flutter-action@v2
15+
with:
16+
flutter-version: '3.19.0'
17+
- run: flutter pub get
18+
- run: flutter analyze
19+
- run: flutter test
20+
21+
build_androidApk:
22+
needs: flutter_test
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v3
26+
- uses: subosito/flutter-action@v2
27+
with:
28+
flutter-version: '3.19.0'
29+
- run: flutter pub get
30+
- run: flutter clean
31+
- run: flutter build apk --release
32+
- uses: ncipollo/release-action@v1
33+
with:
34+
artifacts: "build/app/outputs/apk/release/app-release.apk"
35+
tag: v1.0.${{ github.run_number }}
36+
token: ${{ secrets.TOKEN }}
37+
38+
build_iOSApp:
39+
needs: flutter_test
40+
runs-on: macos-latest
41+
steps:
42+
- uses: actions/checkout@v3
43+
- uses: subosito/flutter-action@v2
44+
with:
45+
flutter-version: '3.19.0'
46+
- run: flutter pub get
47+
- run: flutter clean
48+
- run: flutter build ios --no-codesign
49+
- run: |
50+
mkdir -p Payload
51+
cp -r build/ios/iphoneos/Runner.app Payload/
52+
zip -r app.ipa Payload

0 commit comments

Comments
 (0)