From a7cf1820a1ab9971732cfbd3afe7dca963ba472c Mon Sep 17 00:00:00 2001 From: samzong Date: Tue, 19 Nov 2024 06:29:13 +0000 Subject: [PATCH] auto build and deploy gh page Signed-off-by: GitHub --- .github/workflows/deploy-pages.yaml | 30 +++++++++++++++++++++++++++++ requirements.txt | 7 +++++++ 2 files changed, 37 insertions(+) create mode 100644 .github/workflows/deploy-pages.yaml create mode 100644 requirements.txt 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