Skip to content

Commit

Permalink
new changes to workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedsaadx committed Aug 21, 2024
1 parent 72ceb82 commit 81a38a5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/apk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
if: contains(github.event.head_commit.message, 'apk') || contains(github.event.head_commit.message, 'all')
name: Release Signing Build
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
- name: Extract Version Code and Version Number
Expand All @@ -25,6 +26,18 @@ jobs:
# Replace the version line with the extracted VERSION_NUMBER and VERSION_CODE
sed -i "s/^version:.*/version: ${VERSION_NUMBER}+${VERSION_CODE}/" pubspec.yaml
grep version: -ri pubspec.yaml
- name: Configure Keystore
run: |
echo "$STOREFILE" | base64 --decode > android/app/upload-keystore.jks
echo "storeFile=upload-keystore.jks" >> android/app/key.properties
echo "keyAlias=$KEYALIAS" >> android/app/key.properties
echo "storePassword=$STOREPASSWORD" >> android/app/key.properties
echo "keyPassword=$KEYPASSWORD" >> android/app/key.properties
env:
STOREFILE: ${{ secrets.STOREFILE }}
KEYALIAS: ${{ secrets.KEYALIAS }}
KEYPASSWORD: ${{ secrets.KEYPASSWORD }}
STOREPASSWORD: ${{ secrets.STOREPASSWORD }}
- name: Install GTK and Ninja
run: |
sudo apt-get update
Expand All @@ -49,7 +62,6 @@ jobs:

- name: Sign and Build Release Bundle
run: |
flutter clean
flutter pub get
flutter build apk --release
- name: Free Disk Space (Ubuntu)
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/appbundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,16 @@ jobs:
flutter clean
flutter pub get
flutter build appbundle --release
# - name: Free Disk Space (Ubuntu)
# uses: jlumbroso/free-disk-space@main
# with:
# tool-cache: true
# android: true
# dotnet: false
# haskell: true
# large-packages: false
# docker-images: false
# swap-storage: true
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
android: true
dotnet: false
haskell: true
large-packages: false
docker-images: false
swap-storage: true
- name: Upload artefato
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit 81a38a5

Please sign in to comment.