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:
push:
branches: [ master ]
branches:
- master
paths:
- 'MinecraftClient'
- 'MinecraftClient.sln'
- 'ConsoleInteractive'
env:
PROJECT: "MinecraftClient"

View file

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

1
.gitignore vendored
View file

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