Skip to content
This repository has been archived by the owner on Sep 14, 2024. It is now read-only.

Commit

Permalink
Ignore Renaming for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Teifun2 committed Aug 20, 2023
1 parent 76e1918 commit 34b36c5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 18 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,31 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- name: ⬇️ Checkout repository
uses: actions/checkout@v3
- name: ⚙️ Setup Java
uses: actions/setup-java@v3
with:
java-version: '12.x'
distribution: 'adopt'
cache: 'gradle'
- uses: subosito/flutter-action@v2
- name: ⚙️ Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:'
cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:'
architecture: x64
# This is seems to be only needed when running github actions locally with act
# - run: git config --global --add safe.directory /opt/hostedtoolcache/flutter/stable-3.13.0-x64
- run: flutter pub get
# There are many issues currently that first need to be fixed to allow this rule
# - run: flutter analyze --fatal-infos ./
- run: dart format -o show --set-exit-if-changed ./
- run: flutter test
- run: flutter build apk --debug
# This is seems to be only needed when running github actions locally with act
# - run: git config --global --add safe.directory /opt/hostedtoolcache/flutter/stable-3.13.0-x64
- name: 📥 Downloading Dependencies
run: flutter pub get
# There are many issues currently that first need to be fixed to allow this rule
# - run: flutter analyze --fatal-infos ./
- name: 📝 Format
run: dart format -o none --set-exit-if-changed ./
- name: 🧪 Testing
run: flutter test
- name: 🛠️ Build APK
run: flutter build apk --debug
15 changes: 8 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
# There are many issues currently that first need to be fixed to allow this rule
# - run: flutter analyze --fatal-infos ./
- name: 📝 Format
run: dart format -o show --set-exit-if-changed ./
run: dart format -o none --set-exit-if-changed ./
- name: 🧪 Testing
run: flutter test
- name: 🛠️ Build APK
Expand All @@ -53,11 +53,11 @@ jobs:
alias: ${{ secrets.ANDROID_KEY_ALIAS }}
keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}
- name: 🗃️ Rename the Release File
uses: canastro/copy-file-action@master
with:
source: "${{ steps.sign_app_apk.outputs.signedReleaseFile }}"
target: "${{ github.workspace }}/app-release.apk"
# - name: 🗃️ Rename the Release File
# uses: canastro/copy-file-action@master
# with:
# source: "${{ steps.sign_app_apk.outputs.signedReleaseFile }}"
# target: "${{ github.workspace }}/app-release.apk"
- name: 📄 Extract Version Number
id: flutter-version
uses: NiklasLehnfeld/flutter-version-number-action@main
Expand All @@ -76,5 +76,6 @@ jobs:
tag_name: ${{ steps.flutter-version-split._0 }}
body_path: ${{ github.workspace }}/fastlane/metadata/android/en-US/changelogs/${{ steps.flutter-version-split._1 }}.txt
draft: true
files: "${{ github.workspace }}/app-release.apk"
# files: "${{ github.workspace }}/app-release.apk"
files: ${{ steps.sign_app_apk.outputs.signedReleaseFile }}
fail_on_unmatched_files: true

0 comments on commit 34b36c5

Please sign in to comment.