diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml new file mode 100644 index 000000000..675b32093 --- /dev/null +++ b/.github/workflows/build_docs.yml @@ -0,0 +1,47 @@ +--- +name: OpenWISP Docs + +on: + push: + branches: + - reorder-docs-ci + - master + pull_request: + branches: + - master + +jobs: + build: + name: Python==3.10 + runs-on: ubuntu-22.04 + + strategy: + fail-fast: false + + steps: + - uses: actions/checkout@v2 + with: + repository: openwisp/openwisp2-docs + ref: issues/107-comprehensive-docs + + - name: Set up Python 3.10 + uses: actions/setup-python@v2 + with: + python-version: "3.10" + + - name: Upgrade python system packages + run: pip install -U pip wheel + + - name: Install test dependencies + run: | + pip install -U -r requirements.txt + pip install pylinkvalidator + + - name: Install npm dependencies + run: sudo npm install -g stylelint + + - name: QA checks + run: PRODUCTION=1 VERSION=dev MODULES="repository=${{ github.repository }}:branch=${{ github.ref_name }}" ./run-qa-checks + + - name: Build docs in all formats + run: PRODUCTION=1 make build VERSION=dev MODULES="repository=${{ github.repository }}:branch=${{ github.ref_name }}"