diff --git a/.github/workflows/docs-build.yml b/.github/workflows/docs-build.yml new file mode 100644 index 000000000..facb0c568 --- /dev/null +++ b/.github/workflows/docs-build.yml @@ -0,0 +1,31 @@ +name: docs-build + +on: + push: + pull_request: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: 3.x + - run: pip install -r requirements.txt + - run: mkdocs build --strict + check-dead-links: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: 3.x + - uses: gaurav-nelson/github-action-markdown-link-check@0f074c8562c5a8fed38282b7c741d1970bb1512d + with: + use-quiet-mode: 'yes' + use-verbose-mode: 'yes' + config-file: '.github/workflows/markdown.links.config.json' + folder-path: 'docs' + diff --git a/.github/workflows/ci.yml b/.github/workflows/docs-deploy.yml similarity index 94% rename from .github/workflows/ci.yml rename to .github/workflows/docs-deploy.yml index 7a7362e97..53b0fd473 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/docs-deploy.yml @@ -1,8 +1,10 @@ -name: ci +name: docs-deploy + on: push: branches: - main + jobs: deploy: if: github.repository == 'flare-foundation/docs'