Release App #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Available Runners: https://github.com/actions/runner-images?tab=readme-ov-file#available-images | |
name: Release App | |
on: | |
workflow_dispatch: | |
jobs: | |
# Runs on Linux x64 | |
linux: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v3 | |
- name: Apply Flutter Environment | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: "stable" | |
- name: Update dependencies | |
run: sudo apt-get update -y | |
- name: Install dependencies | |
run: sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev | |
- name: Enable Linux | |
run: flutter config --enable-linux-desktop | |
- name: Activate Packaging Tool | |
run: dart pub global activate flutter_distributor | |
- name: Release App | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: flutter_distributor release --name publish --jobs linux | |
# Runs on Windows x64 | |
# windows: | |
# runs-on: windows-latest | |
# steps: | |
# - name: Git Checkout | |
# uses: actions/checkout@v3 | |
# - name: Apply Flutter Environment | |
# uses: subosito/flutter-action@v2 | |
# with: | |
# channel: "stable" | |
# - name: Enable Windows | |
# run: flutter config --enable-windows-desktop | |
# - name: Activate Packaging Tool | |
# run: dart pub global activate flutter_distributor | |
# - name: Release App | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# run: flutter_distributor release --name publish --jobs windows | |
# Runs on Macos Arm64 | |
# macos: | |
# runs-on: macos-latest | |
# steps: | |
# - name: Git Checkout | |
# uses: actions/checkout@v3 | |
# - name: Install appdmg | |
# run: npm install -g appdmg | |
# - name: Apply Flutter Environment | |
# uses: subosito/flutter-action@v2 | |
# with: | |
# channel: "stable" | |
# - name: Enable MacOS | |
# run: flutter config --enable-macos-desktop | |
# - name: Activate Packaging Tool | |
# run: dart pub global activate flutter_distributor | |
# - name: Release App | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# run: flutter_distributor release --name publish --jobs macos |