mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-08-25 18:49:41 +00:00
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 commit is contained in:
@ -4,18 +4,12 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened, closed]
|
||||
branches:
|
||||
- dev
|
||||
|
||||
jobs:
|
||||
build_and_deploy_job:
|
||||
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
|
||||
runs-on: ubuntu-latest
|
||||
name: Build and Deploy Job
|
||||
steps:
|
||||
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
|
Reference in New Issue
Block a user