I have a flutter project and am trying to automate using github actions. I want to create the apk as soon as I create a new tag and save the apk to it. Can someone help me?
on : push
name: build and test app
jobs:
build:
name: install dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: install dependencies
uses: steebchen/flutter@v1.0.0
with:
args: pub get
# - name: run tests
# uses: steebchen/flutter@v1.0.0
# with:
# args: test
- name: build apk
uses: steebchen/flutter@v1.0.0
with:
args: build apk --release
#- uses: actions/checkout@master
- uses: actions/download-artifact@master
with:
name: app-release.apk
path: build/app/outputs/apk/release/
- run: cat build/app/outputs/apk/release/
I can build it, but I can't download the artifact