Skip to content

Commit

Permalink
testing CI pipline
Browse files Browse the repository at this point in the history
  • Loading branch information
AHMADARBASH committed Aug 3, 2024
1 parent c54dd1f commit cdba95a
Showing 1 changed file with 21 additions and 30 deletions.
51 changes: 21 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,33 @@
name: Android Release
name: Build App Bundle

# 1
on:
# 2
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
branches: [master]

# 3
workflow_dispatch:

# 4
jobs:
# 5
build:
# 6
runs-on: ubuntu-latest

# 7
steps:
# 8
- uses: actions/checkout@v3
# 9
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: "12.x"
# 10
- uses: subosito/flutter-action@v2

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
# 11
flutter-version: "3.0.0"
channel: 'stable'
# 12
- name: Get dependencies
run: flutter pub get
flutter-version: 'stable' # Replace with your desired Flutter version

- name: Configure environment variables
run: |
echo "KEYSTORE_PATH=$KEYSTORE_PATH" >> $GITHUB_ENV
echo "KEYSTORE_PASSWORD=$KEYSTORE_PASSWORD" >> $GITHUB_ENV
echo "KEY_ALIAS=$KEY_ALIAS" >> $GITHUB_ENV
echo "KEY_PASSWORD=$KEY_PASSWORD" >> $GITHUB_ENV
- name: Build app bundle
run: flutter build appbundle --release

# Runs a set of commands using the runners shell
- name: Start release build
run: flutter build appbundle
# Add steps to handle the built app bundle, e.g., upload as artifact
# - uses: actions/upload-artifact@v3
# with:
# name: app-bundle
# path: build/app/outputs/bundle/release/*.aab

0 comments on commit cdba95a

Please sign in to comment.