I'm using the following Actions YAML to try to build an Android APK from a Flutter app:
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
# we need java to build android apks
- uses: actions/setup-java@v1
with:
java-version: '12.x'
# this flutter action does the heavy lifting for us
- uses: subosito/flutter-action@v1
with:
channel: 'stable'
# get packages as you used to in your computer
- run: flutter pub get
# Now build apk
- run: flutter build apk --split-per-abi
# now relase the just created build
- name: Create a Release APK
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/apk/release/*.apk"
token: ${{ secrets.TOKEN }}
When this is ran, it fails, returning:
0s
Run ncipollo/release-action@v1
with:
artifacts: build/app/outputs/apk/release/*.apk
token: ***
omitBody: false
omitBodyDuringUpdate: false
omitName: false
omitNameDuringUpdate: false
replacesArtifacts: true
env:
JAVA_HOME_12.0.2_x64: /opt/hostedtoolcache/jdk/12.0.2/x64
JAVA_HOME: /opt/hostedtoolcache/jdk/12.0.2/x64
JAVA_HOME_12_0_2_X64: /opt/hostedtoolcache/jdk/12.0.2/x64
FLUTTER_HOME: /opt/hostedtoolcache/flutter/1.22.0-stable/x64
Error: Error undefined: No tag found in ref or input!
At the 'Create and Release APK' stage of the action. I'm trying to figure this out. What is my YAML missing, or is this a one-off scenario?