fix: don't run CI on site/.md change

This commit is contained in:
veeso
2023-07-06 11:07:22 +02:00
parent a071f3d420
commit e5ca956897
5 changed files with 39 additions and 5 deletions

View File

@@ -1,6 +1,14 @@
name: Coverage name: Coverage
on: [push, pull_request] on:
pull_request:
paths-ignore:
- "*.md"
- "./site/**/*"
push:
paths-ignore:
- "*.md"
- "./site/**/*"
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always

View File

@@ -1,6 +1,14 @@
name: Linux name: Linux
on: [push, pull_request] on:
pull_request:
paths-ignore:
- "*.md"
- "./site/**/*"
push:
paths-ignore:
- "*.md"
- "./site/**/*"
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always

View File

@@ -1,6 +1,14 @@
name: MacOS name: MacOS
on: [push, pull_request] on:
pull_request:
paths-ignore:
- "*.md"
- "./site/**/*"
push:
paths-ignore:
- "*.md"
- "./site/**/*"
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always

View File

@@ -5,6 +5,8 @@ on:
# Runs on pushes targeting the default branch # Runs on pushes targeting the default branch
push: push:
branches: ["main"] branches: ["main"]
paths:
- "./site/**/*"
# Allows you to run this workflow manually from the Actions tab # Allows you to run this workflow manually from the Actions tab
workflow_dispatch: workflow_dispatch:
@@ -35,7 +37,7 @@ jobs:
- name: Upload artifact - name: Upload artifact
uses: actions/upload-pages-artifact@v1 uses: actions/upload-pages-artifact@v1
with: with:
path: './site/' path: "./site/"
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
id: deployment id: deployment
uses: actions/deploy-pages@v1 uses: actions/deploy-pages@v1

View File

@@ -1,6 +1,14 @@
name: Windows name: Windows
on: [push, pull_request] on:
pull_request:
paths-ignore:
- "*.md"
- "./site/**/*"
push:
paths-ignore:
- "*.md"
- "./site/**/*"
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always