Skip to content

build and release latest development version #1

build and release latest development version

build and release latest development version #1

Workflow file for this run

name: Build and create development release
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install ninja build tools etc.
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev libblkid-dev
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.16.3'
channel: 'stable'
- name: Install flutter project dependencies
run: flutter pub get
#- run: flutter test
- name: Build Android application
run: |
flutter build apk
flutter build appbundle
- name: Build Linux application
run: flutter build linux
- uses: vimtor/[email protected]
with:
files: build/app/outputs/flutter-apk
recursive: true
dest: mopicon-latest-apk.zip
- uses: vimtor/[email protected]
with:
files: build/app/outputs/bundle/release
recursive: true
dest: mopicon-latest-appbundle.zip
- uses: vimtor/[email protected]
with:
files: build/linux/x64/release/bundle
recursive: true
dest: mopicon-latest-linux-x64.zip
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: |
mopicon-latest-linux-x64.zip
mopicon-latest-apk.zip
mopicon-latest-appbundle.zip