Skip to content

Setup CI CD 21πŸ«ΈπŸŒ€βœοΈπŸ“— :octocat: #1

Setup CI CD 21πŸ«ΈπŸŒ€βœοΈπŸ“— :octocat:

Setup CI CD 21πŸ«ΈπŸŒ€βœοΈπŸ“— :octocat: #1

name: Deploy Android App on AppCenter
on:
workflow_call:
inputs:
file:
description: 'The path to the file to be released'
required: true
type: string
name:
description: 'QuranPERSIS'
required: true
type: string
group:
description: 'The group that will have access to the version released'
required: false
type: string
default: '"Collaborators"'
jobs:
build:
name: Build .apk file
runs-on: ubuntu-latest
steps:

Check failure on line 22 in .github/workflows/deploy_android.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy_android.yml

Invalid workflow file

You have an error in your yaml syntax on line 22
- uses: actions/checkout@v4
# The flutter action needs java so include it
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
# Get flutter packages
- run: flutter pub get
# Build :D
- run: flutter build aot
- run: flutter build apk --release --verbose
# - name: Create Release
# uses: ncipollo/[email protected]
# with:
# artifacts: "build/app/outputs/apk/release/*.apk"
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: APK_Releases
path: |
build/app/outputs/flutter-apk/app-release.apk
build/app/outputs/bundle/release/app-release.aab
Deploy:
name: Deploy file to AppCenter
needs: [ build ]
runs-on: ubuntu-latest
steps:
- name: AppCenter CLI Action
uses: charliealbright/[email protected]
with:
token: ${{secrets.APPCENTER_API_TOKEN}}
command: 'appcenter distribute release -f ${{inputs.file}} --app ${{inputs.name}} --group ${{inputs.group}}'