Skip to content

chore: update build script #2

chore: update build script

chore: update build script #2

name: Release for Linux (Debian package)
on:
workflow_dispatch:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
build_deb:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install build-essential
run: |
sudo apt update
sudo apt install build-essential
sudo apt install ninja-build
sudo apt install -y libgtk-3-dev
- name: Install Flutter
run: |
git submodule update --init --recursive
- name: Prepare Flutter Dependencies
run: |
.flutter/bin/flutter config --no-analytics
.flutter/bin/flutter pub get
- name: Build APP
run: |
.flutter/bin/flutter build linux --release
.flutter/bin/dart pub global activate flutter_to_debian
export PATH="$PATH":"$HOME/.pub-cache/bin":".flutter/bin/"
flutter_to_debian
- name: Release
uses: softprops/action-gh-release@v1
with:
files: >
build/linux/x64/release/debian/watermeter_1.1.0_amd64.deb
prerelease: false
tag_name: ${{ github.event.inputs.tag_name }}
token: ${{ secrets.RELEASE_TOKEN }}