Skip to content

Commit

Permalink
Adjust workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-jbooz committed Feb 11, 2025
1 parent b282597 commit b1708af
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/main.yml
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
Expand Down

0 comments on commit b1708af

Please sign in to comment.