Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
YoussefLasheen authored Oct 6, 2024
1 parent 800b92e commit 288c223
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
build:
name: Build & Release
runs-on: ubuntu-latest
runs-on: ubuntu-latest

steps:
- name: Clone repository
Expand All @@ -17,31 +17,34 @@ jobs:
with:
flutter-version: '3.24.3'

- name: Install Dependencies
- name: Install Flutter Dependencies
run: flutter pub get

- name: Build Linux App
- run: |
- name: Install linux dependencies
run: |
sudo apt-get update -y
sudo apt-get install clang cmake git ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
- run: flutter build linux --release --target-platform=linux-arm64,linux-x64
- run: |
- name: Build Linux App
run: flutter build linux --release --target-platform=linux-arm64,linux-x64

- name: Archive Linux App
run: |
tar -czf build/linux_build_arm64.tar.gz build/linux/arm64/release/bundle
tar -czf build/linux_build_x64.tar.gz build/linux/x64/release/bundle
#9 Upload Artifacts
- name: Upload Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3.0.0
with:
name: Releases
path: |
build/linux_build_arm64.tar.gz
build/linux_build_x64.tar.gz
#13 Create Release
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/flutter-apk/app-release.apk,build/app/outputs/bundle/release/app-release.aab,build/ios_build.tar.gz"
artifacts: "build/linux_build_arm64.tar.gz,build/linux_build_x64.tar.gz"
tag: v${{ env.VERSION }}
token: ${{ secrets.TOKEN }}

0 comments on commit 288c223

Please sign in to comment.