mirror of
https://github.com/ClementTsang/bottom.git
synced 2024-11-11 04:47:36 +03:00
0c648ed14a
action-rs' action seems to not be really maintained anymore and throws some redundant warnings that kinda clog up outputs. As such, I feel like moving to a more active action is probably worth it.
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
name: test-docs
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
|
|
jobs:
|
|
pre_job:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
should_skip: ${{ steps.skip_check.outputs.should_skip }}
|
|
steps:
|
|
- id: skip_check
|
|
uses: fkirc/skip-duplicate-actions@38c3738dcac87b41e2b7038775457756c793566e # https://github.com/fkirc/skip-duplicate-actions/commit/38c3738dcac87b41e2b7038775457756c793566e
|
|
with:
|
|
skip_after_successful_duplicate: "true"
|
|
paths: '["docs/**", ".github/workflows/docs.yml"]'
|
|
do_not_skip: '["workflow_dispatch"]'
|
|
|
|
test-build-documentation:
|
|
name: Test building docs
|
|
needs: pre_job
|
|
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.x
|
|
|
|
- name: Install Python dependencies
|
|
run: pip install -r docs/requirements.txt
|
|
|
|
- name: Build docs with mkdocs
|
|
run: |
|
|
cd docs
|
|
mkdocs build
|