mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
95983cbebc
Separate workflows for `push` and `pull_request` events. This avoids a `skipped` job status (`Check Run`?) always being presented for the `deploy` job in Pull Requests. --- chore(`.gitignore`): Ignore the `docs/site/` build output Ignore to avoid local builds output appearing in git as unstaged.
23 lines
466 B
YAML
23 lines
466 B
YAML
name: 'Documentation'
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '.github/workflows/pr-docs.yml'
|
|
- 'docs/**'
|
|
|
|
# Jobs will run shell commands from this subdirectory:
|
|
defaults:
|
|
run:
|
|
working-directory: docs
|
|
|
|
jobs:
|
|
build:
|
|
name: 'Verify Build'
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: 'Build with mkdocs-material via Docker'
|
|
run: docker run --rm -v ${PWD}:/docs squidfunk/mkdocs-material build --strict
|