-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,30 @@ | ||
name: build-mkdocs | ||
name: Verify, Build and Deploy | ||
|
||
# Run CI on a push to any branch and PRs against the main branch | ||
on: | ||
push: | ||
branches: | ||
- main | ||
branches: ["**"] | ||
pull_request: | ||
branches: ["main"] | ||
jobs: | ||
# Use Vale via the official action to lint files | ||
vale: | ||
name: Vale Linting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: errata-ai/[email protected] | ||
with: | ||
fail_on_error: true | ||
# Build and deploy docs using material for mkdocs | ||
# This only runs when the branch is main | ||
deploy: | ||
runs-on: ubuntu-latest | ||
# Only run on a push to the main branch (not PRs) | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
- run: pip install mkdocs-material | ||
|