I want to set the version number from the GitHub action script for Firebase App distribution. Here is the place:
I have already tried using the below Github action script, but it seems there are no appRelease options for firebase appdistribution:distribute plugin
# Extract Version from Git Tag
- name: Extract Version from Tag
id: extract_version
run: echo "::set-output name=version::$(echo ${{ github.ref }} | sed -n 's/refs\/tags\/v//p')"
# Extract Release Notes from Tag Message
- name: Extract Release Notes from Tag
id: get_tag_message
run: |
tag_message=$(git log -1 --pretty=%B)
echo "::set-output name=tag-message::$tag_message"
# Upload APK to Firebase App Distribution
- name: Upload APK to Firebase App Distribution
run: |
firebase appdistribution:distribute build/app/outputs/flutter-apk/app-release.apk \
--app "${{ secrets.APPID }}" \
--groups "testers" \
--debug \
--release-notes "Version: ${{ steps.extract_version.outputs.version }} | Release Notes: ${{ steps.get_tag_message.outputs.tag-message }}"
Can anybody help to set the version number here?