ci: move docs linting to docs workflow

This commit is contained in:
jo 2022-04-10 16:26:28 +02:00 committed by Kyle Robbertze
parent c7ebeee114
commit b18cc8c2e8
2 changed files with 35 additions and 26 deletions

35
.github/workflows/docs.yml vendored Normal file
View File

@ -0,0 +1,35 @@
name: Docs
on:
push:
branches: [main]
paths:
- .github/workflows/docs.yml
- website/**
- docs/**
pull_request:
branches: [main]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Vale
run: |
sudo pip3 install gh-release-install
sudo gh-release-install \
errata-ai/vale \
vale_{version}_Linux_64-bit.tar.gz --extract vale \
/usr/local/bin/vale
- name: Add annotations matchers
run: |
echo "::add-matcher::.github/annotations/vale.json"
- name: Run Vale
run: |
make -C .github/vale/styles
vale --output line docs website/src/pages || true

View File

@ -10,35 +10,9 @@ on:
pull_request:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Vale
run: |
sudo pip3 install gh-release-install
sudo gh-release-install \
errata-ai/vale \
vale_{version}_Linux_64-bit.tar.gz --extract vale \
/usr/local/bin/vale
- name: Add annotations matchers
run: |
echo "::add-matcher::.github/annotations/vale.json"
- name: Run Vale
run: |
make -C .github/vale/styles
vale --output line docs website/src/pages || true
deploy:
name: Deploy
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
needs: [lint]
steps:
- uses: actions/checkout@v3