diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index a14be821a..f0b792a7c 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -5,7 +5,7 @@ on: branches: - master schedule: - - cron: '30 1 * * *' + - cron: "30 1 * * *" workflow_dispatch: permissions: @@ -23,8 +23,8 @@ jobs: - uses: actions/setup-python@v4 with: - python-version: '3.10' - cache: 'pip' + python-version: "3.10" + cache: "pip" - name: Install Python requirements run: pip install -r requirements.txt @@ -78,6 +78,6 @@ jobs: - name: Deploy to GitHub Pages uses: JamesIves/github-pages-deploy-action@v4.2.2 with: - branch: gh-pages - clean: true - folder: site + branch: gh-pages + clean: true + folder: site diff --git a/.github/workflows/lint-and-test.yml b/.github/workflows/lint-and-test.yml index 7e5405e17..713e28f8c 100644 --- a/.github/workflows/lint-and-test.yml +++ b/.github/workflows/lint-and-test.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/setup-python@v3 - uses: pre-commit/action@v3.0.0 - test-build: + test-simple-build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -33,3 +33,25 @@ jobs: run: mkdocs build env: DEFAULT_LANGUAGE_ONLY: true + + test-insiders-build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: "3.10" + cache: "pip" + + - name: Install Python requirements + run: pip install -r requirements.txt + + - name: Install Python requirements insiders + run: pip install -r requirements-insiders.txt + env: + MKDOCS_INSIDERS_TOKEN: ${{ secrets.MKDOCS_INSIDERS_TOKEN }} + + - name: Build documentation + run: mkdocs build + env: + DEFAULT_LANGUAGE_ONLY: true diff --git a/requirements-insiders.txt b/requirements-insiders.txt index 9d7c51d10..161712f37 100644 --- a/requirements-insiders.txt +++ b/requirements-insiders.txt @@ -1 +1 @@ -git+https://${MKDOCS_INSIDERS_TOKEN}@github.com/opengisch/mkdocs-material-insiders@425df60910d649d80505851dc2fd3d240cd65e73#egg=mkdocs-material +git+https://${MKDOCS_INSIDERS_TOKEN}@github.com/opengisch/mkdocs-material-insiders@458242c58db8e47ee5a51cd7c8853d7ff40567ab#egg=mkdocs-material