From 3c52804b61f5b7c893db7ded7be34cda4c6053cb Mon Sep 17 00:00:00 2001 From: Johnshall <71166067+Johnshall@users.noreply.github.com> Date: Fri, 4 Nov 2022 14:39:06 +0800 Subject: [PATCH] =?UTF-8?q?=EF=BF=AA=20Update=20main.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e2fc9c1..24acf4f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,14 @@ on: push: branches: - - master + - build + paths-ignore: + - '**.md' + - 'LICENSE' + + pull_request_target: + branches: + - build paths-ignore: - '**.md' - 'LICENSE' @@ -18,8 +25,7 @@ jobs: build: runs-on: ubuntu-latest steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Install requirements run: pip3 install -r requirements.txt @@ -28,9 +34,9 @@ jobs: run: ./factory/auto_build.sh - name: Deploy - uses: JamesIves/github-pages-deploy-action@4.1.7 + uses: JamesIves/github-pages-deploy-action@v4 with: - BRANCH: master + BRANCH: build FOLDER: . commit-message : 'Nightly build'