-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: update actions to v4: checkout upload-artifact
also: - chore: flutter pub get - ci: rm java
- Loading branch information
Showing
2 changed files
with
29 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,13 +16,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '11' | ||
- uses: actions/checkout@v4 | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: stable | ||
flutter-version: '3.22.2' | ||
- run: flutter pub get | ||
|
||
|
@@ -38,19 +35,20 @@ jobs: | |
TEST_INSTANCE_URL: ${{ secrets.TEST_INSTANCE_URL }} | ||
run: | | ||
echo "no testing" | ||
# flutter packages pub run build_runner build | ||
# flutter drive \ | ||
# [email protected] \ | ||
# --dart-define=ELN_PASSWORD=@complat \ | ||
# --dart-define=ELN_URL=$TEST_INSTANCE_URL | ||
# --driver=test_driver/integration_test.dart \ | ||
# --target=integration_test/app_test.dart | ||
# flutter packages pub run build_runner build | ||
# flutter drive \ | ||
# [email protected] \ | ||
# --dart-define=ELN_PASSWORD=@complat \ | ||
# --dart-define=ELN_URL=$TEST_INSTANCE_URL | ||
# --driver=test_driver/integration_test.dart \ | ||
# --target=integration_test/app_test.dart | ||
- name: set key properties | ||
#keyPassword="${{ secrets.KEY_PASSWORD }}" | ||
#storePassword="${{ secrets.STORE_PASSWORD }}" | ||
#keyAlias="${{ secrets.KEY_ALIAS }} | ||
#storeFile=keystore.jks | ||
# keyPassword="${{ secrets.KEY_PASSWORD }}" | ||
# storePassword="${{ secrets.STORE_PASSWORD }}" | ||
# keyAlias="${{ secrets.KEY_ALIAS }} | ||
# storeFile=keystore.jks | ||
run: | | ||
echo keyPassword="${{ secrets.KEY_PASSWORD }}" > ./android/key.properties | ||
echo storePassword="${{ secrets.STORE_PASSWORD }}" >> ./android/key.properties | ||
|
@@ -59,10 +57,11 @@ jobs: | |
echo "${{ secrets.KEY_JKS }}" | base64 --decode > ./android/app/keystore.jks | ||
# - run: flutter build apk | ||
|
||
- run: flutter build appbundle | ||
|
||
- name: Upload artefact | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: appbundle | ||
path: build/app/outputs/bundle/release/app-release.aab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters