From b18cc8c2e8a06f34de1b7e1a99e63f78da82a148 Mon Sep 17 00:00:00 2001 From: jo Date: Sun, 10 Apr 2022 16:26:28 +0200 Subject: [PATCH] ci: move docs linting to docs workflow --- .github/workflows/docs.yml | 35 +++++++++++++++++++++++++++++++++++ .github/workflows/website.yml | 26 -------------------------- 2 files changed, 35 insertions(+), 26 deletions(-) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 000000000..a7ffed840 --- /dev/null +++ b/.github/workflows/docs.yml @@ -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 diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index c98a4146b..d6951628a 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -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