Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
DawnMagnet committed Mar 2, 2024
1 parent e8fb7f4 commit bd03a4c
Showing 1 changed file with 63 additions and 3 deletions.
66 changes: 63 additions & 3 deletions .github/workflows/flutter-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ jobs:
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev
- name: "Install dependencies"
run: |
sudo apt-get update
sudo apt-get install -y cmake ninja-build build-essential pkg-config curl file git unzip xz-utils zip libgtk-3-dev
- name: Flutter Pub Get
run: flutter pub get

Expand All @@ -34,15 +39,22 @@ jobs:

- name: Build Linux app
run: flutter build linux

- name: Build AppImage unsing appimage-builder
uses: docker://appimagecrafters/appimage-builder:0.8.5
with:
entrypoint: appimage-builder
args: --recipe ./AppImageBuilder.yml --skip-test

- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: release-artifacts
path: |
build/app/outputs/apk/release/
build/windows/runner/Release/
build/web/
./*.AppImage*
release-on-ubuntu:
needs: build-and-release-on-ubuntu
Expand All @@ -55,12 +67,16 @@ jobs:
name: release-artifacts

- name: Create release
uses: softprops/action-gh-release@v1
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
title: "Development Build"
files: |
build/app/outputs/apk/release/*.apk
build/windows/runner/Release/*.exe
build/web/
./*.AppImage*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -102,3 +118,47 @@ jobs:
with:
channel: "stable"
- run: flutter build windows
release-on-macos:
needs: build-and-release-on-macos
runs-on: ubuntu-latest

steps:
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: release-artifacts

- name: Create release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
title: "Development Build"
files: |
build/windows/runner/Release/*.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release-on-windows:
needs: build-and-release-on-windows
runs-on: ubuntu-latest

steps:
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: release-artifacts

- name: Create release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
title: "Development Build"
files: |
build/windows/runner/Release/*.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit bd03a4c

Please sign in to comment.