Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial CI Build system #4

Merged
merged 5 commits into from
Dec 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
👷 (Ci Build) Update workflow steps
  • Loading branch information
iqfareez committed Dec 21, 2024
commit 89061fc3db6e180394585016db190a14e7835aff
27 changes: 9 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Build
name: Build Windows & Linux Executable on Release

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
release:
types: [published]

jobs:
build_windows:
Expand All @@ -19,14 +17,11 @@ jobs:
channel: stable
- run: flutter pub get
- run: flutter build windows --release
- run: cd build/windows/x64/runner/Release/ && powershell Compress-Archive -Path * -DestinationPath windows-x64.zip
- name: Upload Windows App to release
uses: svenstaro/upload-release-action@v2
uses: softprops/action-gh-release@v1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build\windows\x64\runner\Release\quran_publisher_desktop.exe
tag: v1.0-${{ github.run_number }}
overwrite: true
body: "It's beta"
files: build/windows/x64/runner/Release/windows-x64.zip

build_linux:
name: 🐧 Build Linux App
Expand All @@ -42,12 +37,8 @@ jobs:
- run: sudo apt-get install -y ninja-build libgtk-3-dev
- run: flutter pub get
- run: flutter build linux --release
- run: cd build/linux/x64/release/bundle/ && zip -r linux.zip *
- run: cd build/linux/x64/release/bundle/ && zip -r linux-x64.zip *
- name: Upload Linux App to release
uses: svenstaro/upload-release-action@v2
uses: softprops/action-gh-release@v1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/linux/x64/release/bundle/linux.zip
tag: v1.0-${{ github.run_number }}
overwrite: true
body: "It's beta"
files: build/linux/x64/release/bundle/linux-x64.zip