Skip to content

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #62

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #62

Workflow file for this run

name: pull-build-test
on:
pull_request_target:
types: [labeled]
env:
ANDROID_FIREBASE_JSON: ${{secrets.ANDROID_FIREBASE_JSON}}
jobs:
flutter-build:
name: Run flutter build
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'safe-for-build')
defaults:
run:
working-directory: aptiche
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-java@v1
with:
java-version: "12.x"
- uses: subosito/flutter-action@v1
with:
channel: "stable"
- name: Decode Google Services JSON
run: |
touch android/app/google-services.json
echo $ANDROID_FIREBASE_JSON >> android/app/google-services.json
cat android/app/google-services.json
- name: Flutter Build
run: flutter clean
- run: flutter pub get
- run: flutter build apk
- name: Upload APK
uses: actions/upload-artifact@v2
with:
name: release-apk
path: aptiche/build/app/outputs/flutter-apk/app-release.apk
- name: Download APK
uses: actions/[email protected]
with:
name: release-apk
- name: Display structure of downloaded files
run: ls -R