-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b2a2f4a
commit 7df92ee
Showing
1 changed file
with
36 additions
and
35 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 |
---|---|---|
|
@@ -34,44 +34,45 @@ jobs: | |
new-release-published: ${{ steps.get-next-version.outputs.new-release-published }} | ||
new-release-version: ${{ steps.get-next-version.outputs.new-release-version }} | ||
|
||
android_build: | ||
name: Android Build | ||
needs: [get-next-version] | ||
runs-on: ubuntu-latest | ||
env: | ||
VERSION: ${{ needs.get-next-version.outputs.new-release-version }} | ||
timeout-minutes: 10 | ||
if: ${{ needs.get-next-version.outputs.new-release-published }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: | | ||
${{ secrets.LENRA_UI_RUNNER_SSH }} | ||
${{ secrets.LENRA_COMPONENTS_SSH }} | ||
${{ secrets.CLIENT_COMMON_SSH }} | ||
${{ secrets.CLIENT_APP_SSH }} | ||
- name: Install Flutter & Dependencies | ||
uses: subosito/[email protected] | ||
with: | ||
flutter-version: ${{ env.flutter_version }} | ||
- name: Setup yq | ||
id: setup-yq | ||
uses: shiipou/setup-yq-action@stable | ||
- name: Update pubspec version | ||
run: yq -i ".version = \"${{ env.VERSION }}\"" pubspec.yaml | ||
- name: Flutter Build APK | ||
run: flutter build apk --no-tree-shake-icons --dart-define=LENRA_SERVER_URL=https://api.lenra.io | ||
- name: Upload APK artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: app-release | ||
path: build/app/outputs/flutter-apk/app-release.apk | ||
# android_build: | ||
# name: Android Build | ||
# needs: [get-next-version] | ||
# runs-on: ubuntu-latest | ||
# env: | ||
# VERSION: ${{ needs.get-next-version.outputs.new-release-version }} | ||
# timeout-minutes: 10 | ||
# if: ${{ needs.get-next-version.outputs.new-release-published }} | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v2 | ||
# - uses: webfactory/[email protected] | ||
# with: | ||
# ssh-private-key: | | ||
# ${{ secrets.LENRA_UI_RUNNER_SSH }} | ||
# ${{ secrets.LENRA_COMPONENTS_SSH }} | ||
# ${{ secrets.CLIENT_COMMON_SSH }} | ||
# ${{ secrets.CLIENT_APP_SSH }} | ||
# - name: Install Flutter & Dependencies | ||
# uses: subosito/[email protected] | ||
# with: | ||
# flutter-version: ${{ env.flutter_version }} | ||
# - name: Setup yq | ||
# id: setup-yq | ||
# uses: shiipou/setup-yq-action@stable | ||
# - name: Update pubspec version | ||
# run: yq -i ".version = \"${{ env.VERSION }}\"" pubspec.yaml | ||
# - name: Flutter Build APK | ||
# run: flutter build apk --no-tree-shake-icons --dart-define=LENRA_SERVER_URL=https://api.lenra.io | ||
# - name: Upload APK artifact | ||
# uses: actions/upload-artifact@v2 | ||
# with: | ||
# name: app-release | ||
# path: build/app/outputs/flutter-apk/app-release.apk | ||
|
||
release: | ||
name: Release | ||
needs: [android_build] | ||
# needs: [android_build] | ||
needs: [get-next-version] | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
|