diff --git a/.github/workflows/public-docs.yml b/.github/workflows/public-docs.yml new file mode 100644 index 000000000..cc8aa2352 --- /dev/null +++ b/.github/workflows/public-docs.yml @@ -0,0 +1,28 @@ +name: Publish docs via Github pages +on: + push: + branches: + - master +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout master + uses: actions/checkout@4 + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: 3.x + - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV + - uses: actions/cache@v4 + with: + key: mkdocs-material-${{ env.cache_id }} + path: .cache + restore-keys: | + mkdocs-material- + - run: pip install \ + mkdocs-material \ + pymdown-extensions \ + mkdocs-glightbox \ + mkdocs-pymdownx-material-extras + - run: mkdocs gh-deploy --force \ No newline at end of file