ci: fix path to pages artifact

ci: ignore changes to documentation for docker/rust builds
This commit is contained in:
Paul Makles
2024-05-11 17:50:52 +01:00
parent b69202c222
commit 08127218ce
3 changed files with 10 additions and 4 deletions

View File

@@ -24,8 +24,6 @@ jobs:
echo `pwd`/mdbook >> $GITHUB_PATH echo `pwd`/mdbook >> $GITHUB_PATH
- name: Build Book - name: Build Book
run: | run: |
# This assumes your book is in the root of your repository.
# Just add a `cd` here if you need to change to another directory.
cd doc cd doc
mdbook build mdbook build
- name: Setup Pages - name: Setup Pages
@@ -33,8 +31,7 @@ jobs:
- name: Upload artifact - name: Upload artifact
uses: actions/upload-pages-artifact@v3 uses: actions/upload-pages-artifact@v3
with: with:
# Upload entire repository path: "doc/book"
path: "book"
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
id: deployment id: deployment
uses: actions/deploy-pages@v4 uses: actions/deploy-pages@v4

View File

@@ -10,6 +10,7 @@ on:
- ".github/**" - ".github/**"
- "!.github/workflows/docker.yml" - "!.github/workflows/docker.yml"
- ".vscode/**" - ".vscode/**"
- "doc/**"
- ".gitignore" - ".gitignore"
- "LICENSE" - "LICENSE"
- "README" - "README"

View File

@@ -2,6 +2,14 @@ name: Rust build, test, and generate specification
on: on:
push: push:
paths-ignore:
- ".github/**"
- "!.github/workflows/rust.yaml"
- ".vscode/**"
- "doc/**"
- ".gitignore"
- "LICENSE"
- "README"
pull_request: pull_request:
branches: [main] branches: [main]