From 857cbfd9d9e72d2e5330263a01e70aff739ccc35 Mon Sep 17 00:00:00 2001 From: Wulian233 <71213467+Wulian233@users.noreply.github.com> Date: Thu, 30 May 2024 21:32:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20build.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 42532c83..d91e1028 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,17 +1,22 @@ name: Build Page -on: [ push, workflow_dispatch ] +on: + push: + paths-ignore: + - 'README.md' + - '.gitignore' jobs: build-and-deploy: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install Vitepress run: npm install vitepress + - name: Build and Deploy uses: jenkey2011/vuepress-deploy@master env: @@ -19,4 +24,4 @@ jobs: TARGET_REPO: Wulian233/vmct-website-beta TARGET_BRANCH: gh_pages BUILD_SCRIPT: npm run build - BUILD_DIR: .vitepress/dist/ + BUILD_DIR: .vitepress/dist/ \ No newline at end of file