From 6e41bb2fb5a4b45e9b40576c75e8db69bdee49a3 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Fri, 19 Jan 2024 02:38:19 +0000 Subject: [PATCH] feat: Updated .github/workflows/main.yml --- .github/workflows/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ea11391af363..a15cd7a2cdac 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,5 +1,13 @@ name: FastGPT GitHub Actions Workflow + + pull_request_target: + branches: + - main + +jobs: + build-and-deploy: + env: FASTGPT_TOKEN: ${{ secrets.FASTGPT_TOKEN }} @@ -29,6 +37,9 @@ jobs: - name: Run tests and coverage run: pytest --cov + - name: Build and deploy + run: | + echo Deploying FastGPT application run: pytest -v --cov - name: Deploy FastGPT application