From 45b51b89ca59521b064fe9e2e51440b108fd7e5b Mon Sep 17 00:00:00 2001 From: Yusheng Zheng Date: Thu, 14 Nov 2024 07:27:02 +0000 Subject: [PATCH] update --- .github/site/mkdocs.yml | 6 +----- .github/workflows/blank.yml | 20 ++++++++++++++++++-- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/.github/site/mkdocs.yml b/.github/site/mkdocs.yml index da2b2baf93..395f8b5fb0 100644 --- a/.github/site/mkdocs.yml +++ b/.github/site/mkdocs.yml @@ -39,11 +39,7 @@ theme: name: Switch to system preference language: en plugins: - - search - pipeline: - - stemmer - - stopWordFilter - - trimmer + # - search - social - rss: match_path: ".*" diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index c395052ff6..f6361e83df 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -4,11 +4,15 @@ on: branches: - master - main -permissions: - contents: write + jobs: deploy: runs-on: ubuntu-latest + permissions: + contents: write + pages: write # Add permission for GitHub Pages + id-token: write # Add permission for GitHub Pages deployment + steps: - uses: actions/checkout@v4 with: @@ -45,3 +49,15 @@ jobs: # PUBLISH_AS_DRAFT: 'true' # Or 'false' if you want to publish directly # run: | # python .github/manage/publish.py + + - name: Create docs directory + run: | + mkdir -p docs + cp -r .github docs/ + cp README.md docs/ + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: 'docs' + - name: Deploy to GitHub Pages + uses: actions/deploy-pages@v4 \ No newline at end of file