diff --git a/.github/workflows/sp-docs.yml b/.github/workflows/sp-docs.yml new file mode 100644 index 0000000000..f58afb24d2 --- /dev/null +++ b/.github/workflows/sp-docs.yml @@ -0,0 +1,35 @@ +name: sp-docs +on: + push: + branches: + #- master + - sp-docs +permissions: + contents: write +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Configure Git Credentials + run: | + git config user.name github-actions[bot] + git config user.email 41898282+github-actions[bot]@users.noreply.github.com + - 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 \ + mkdocs-git-revision-date-localized-plugin \ + mkdocs-git-committers-plugin-2" \ + mkdocs-git-authors-plugin" \ + mkdocs-glightbox" \ + mkdocs-redirects" + - run: mkdocs gh-deploy --config-file mkdocs-sp.yml --force \ No newline at end of file diff --git a/.gitignore b/.gitignore index 00a0533d86..b402dfd64b 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,7 @@ a.out .cache/ /docs_site/ +/docs_sp_site/ *.mp4 *.dylib