diff --git a/.github/workflows/deploy-pages.yaml b/.github/workflows/deploy-pages.yaml new file mode 100644 index 0000000000..042486c7e7 --- /dev/null +++ b/.github/workflows/deploy-pages.yaml @@ -0,0 +1,30 @@ +# This is a basic workflow to help you get started with Actions +name: deploy-for-main + +# Controls when the workflow will run +on: + push: + branches: [ main ] + +jobs: + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + steps: + # Clone the repository + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: actions/setup-python@v4 + with: + python-version: 3.x + cache: 'pip' + + # Install dependencies + - run: pip install -r requirements.txt --no-cache-dir + + # Build docs + - run: pwd + - run: mkdocs gh-deploy -c --force diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000..4d09aa833f --- /dev/null +++ b/requirements.txt @@ -0,0 +1,7 @@ +mkdocs-material +mkdocs-minify-plugin +pymdown-extensions +mkdocs-swagger-ui-tag +mkdocs-static-i18n +mkdocs-git-revision-date-localized-plugin +mkdocs-git-committers-plugin-2