Triggers a build only when the associated file changes.

This commit is contained in:
BruceChen 2022-11-03 09:55:25 +08:00
parent 2c52b150e8
commit 06d519add4
3 changed files with 12 additions and 6 deletions

View file

@ -2,7 +2,12 @@ name: Build
on: on:
push: push:
branches: [ master ] branches:
- master
paths:
- 'MinecraftClient'
- 'MinecraftClient.sln'
- 'ConsoleInteractive'
env: env:
PROJECT: "MinecraftClient" PROJECT: "MinecraftClient"

View file

@ -1,16 +1,16 @@
name: docs name: Deploy Document
on: on:
push: push:
branches: branches:
- main - master
paths-ignore: paths:
- '**/__tests__/**' - 'docs'
workflow_dispatch:
jobs: jobs:
build-and-deploy: build-and-deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, 'SKIP_DEPLOY') }}
steps: steps:
- name: Checkout - name: Checkout

1
.gitignore vendored
View file

@ -404,3 +404,4 @@ FodyWeavers.xsd
# docs # docs
!/docs/.vuepress !/docs/.vuepress
/docs/.vuepress/dist