From 7c506ee53a2b53214f92e2f6472dd03b3b692cd4 Mon Sep 17 00:00:00 2001 From: Saahil Date: Fri, 6 Sep 2024 12:36:27 -0400 Subject: [PATCH] Update deploy.yml (#2) --- .github/workflows/deploy.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 291cb317..d4f97c52 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,5 +1,15 @@ -name: remote ssh command -on: [push] +name: Remote Deploy + +on: + push: + branches: + - main + paths: + # on code related change + - ".github/workflows/deploy.yml" + - "src/**" + - "public/**" + workflow_dispatch: jobs: @@ -29,4 +39,4 @@ jobs: export REACT_APP_BUILD_SHA=${{ steps.short_sha.outputs.short_sha }} export REACT_APP_BUILD_ID=${{ github.run_id }} export REACT_APP_BUILD_NUM=${{ github.run_number }} - bash ./deploy.sh ${{ github.event.repository.name }} \ No newline at end of file + bash ./deploy.sh ${{ github.event.repository.name }}