Skip to content

Commit

Permalink
add sqlite package to linux in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
EdoTXp committed Jan 14, 2025
1 parent 2aa2fae commit e71e1f2
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/build_bookify_android_apk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,24 +60,28 @@ jobs:
echo "${{ secrets.FIREBASE_JSON }}" | base64 --decode > firebase.json
echo "${{ secrets.FIREBASE_OPTIONS_DART }}" | base64 --decode > lib/firebase_options.dart
#8 Analyze and Test
#8 Install SQLite Package to linux
- name: Install SQLite Package
run: sudo apt-get -y install libsqlite3-0 libsqlite3-dev

#9 Analyze and Test
- name: Analyze and Test
run: |
flutter analyze
flutter test
#9 Building APK
#10 Building APK
- name: Build APK
run: flutter build apk --release

#10 Extract Version
#11 Extract Version
- name: Extract version from pubspec.yaml
id: extract_version
run: |
version=$(grep '^version: ' pubspec.yaml | cut -d ' ' -f 2 | tr -d '\r')
echo "VERSION=$version" >> $GITHUB_ENV
#11 Check if Tag Exists
#12 Check if Tag Exists
- name: Check if Tag Exists
id: check_tag
run: |
Expand All @@ -87,22 +91,22 @@ jobs:
echo "TAG_EXISTS=false" >> $GITHUB_ENV
fi
#12 Modify Tag if it Exists
#13 Modify Tag if it Exists
- name: Modify Tag
if: env.TAG_EXISTS == 'true'
id: modify_tag
run: |
new_version="${{ env.VERSION }}-build-${{ github.run_number }}"
echo "VERSION=$new_version" >> $GITHUB_ENV
#13 Create Release
#14 Create Release
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/flutter-apk/app-release.apk,build/app/outputs/bundle/release/app-release.aab,build/ios_build.tar.gz"
tag: v${{ env.VERSION }}
token: ${{ secrets.TOKEN }}

#14 Cleanup Completo
#15 Cleanup Completo
- name: Cleanup Entire Project
run: rm -rf $GITHUB_WORKSPACE

0 comments on commit e71e1f2

Please sign in to comment.