Revert "enhanced ci/cd by not running the deply jobs on the PR itself, and now we only deploy when we merged a PR to dev or main, and created a separate GitHub action that only builds and install dependencies, which only runs on the PR itself."

This reverts commit f19120c754.
This commit is contained in:
Faris Armoush
2025-06-11 09:52:08 +03:00
parent 03f5c869c6
commit cdbd90b54c
3 changed files with 10 additions and 29 deletions

View File

@ -4,6 +4,10 @@ on:
push: push:
branches: branches:
- main - main
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main
jobs: jobs:
build_and_deploy_job: build_and_deploy_job:

View File

@ -4,12 +4,18 @@ on:
push: push:
branches: branches:
- dev - dev
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- dev
jobs: jobs:
build_and_deploy_job: build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Build and Deploy Job name: Build and Deploy Job
steps: steps:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:

View File

@ -1,29 +0,0 @@
name: Pull Request Check
on:
pull_request:
branches:
- dev
- main
jobs:
setup_flutter:
runs-on: ubuntu-latest
name: Setup Flutter and Dependencies
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
submodules: true
lfs: false
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.27.3'
- name: Install dependencies
run: flutter pub get
- name: Run Flutter Build
run: flutter build web --web-renderer canvaskit -t lib/main_dev.dart