From e93d7f0c79208d5b07466e63e16de62bb9da24b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=AA=E5=AD=90?= Date: Mon, 6 May 2024 12:10:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 54 +++++++------------------------------- hugo.toml | 4 +-- 2 files changed, 11 insertions(+), 47 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 45efe9b..f288cd2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: Bigfa +name: HUGO-pages on: push: @@ -23,54 +23,18 @@ jobs: - name: Build run: hugo --gc --minify --cleanDestinationDir - - name: Search - uses: caibingcheng/hugo-algolia2@v1 - with: - input: "content/zh-cn/story/**" - index: "bigfa" - apikey: ${{ secrets.ALGOLIA_WRITE_KEY }} - appid: "FX1CAS2SD8" - - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: - personal_token: ${{ secrets.Bigfa }} # personal_token 这里新建一个 https://github.com/settings/tokens + personal_token: ${{ secrets.hugoblog }} # personal_token 这里新建一个 https://github.com/settings/tokens PUBLISH_BRANCH: gh-pages # 推送到当前 gh-pages 分支 PUBLISH_DIR: ./public # hugo 生成到 public 作为跟目录 commit_message: ${{ github.event.head_commit.message }} - - - name: Build FARALLON DEMO - run: hugo --gc --minify --cleanDestinationDir -b https://bigfa.github.io/hugo-theme-farallon/ -t farallon - - - name: Deploy Demo - uses: peaceiris/actions-gh-pages@v3.9.3 + + - name: Search + uses: caibingcheng/hugo-algolia2@v1 with: - personal_token: ${{ secrets.PERSONAL_TOKEN }} - external_repository: bigfa/hugo-theme-farallon - publish_branch: gh-pages # default: gh-pages - publish_dir: ./public - commit_message: ${{ github.event.head_commit.message }} - - - name: Build notability demo - run: hugo --gc --minify --cleanDestinationDir -b https://bigfa.github.io/hugo-theme-notability/ -t notability - - - name: Deploy notability Demo - uses: peaceiris/actions-gh-pages@v3.9.3 - with: - personal_token: ${{ secrets.PERSONAL_TOKEN }} - external_repository: bigfa/hugo-theme-notability - publish_branch: gh-pages # default: gh-pages - publish_dir: ./public - commit_message: ${{ github.event.head_commit.message }} - - - name: Build puppy demo - run: hugo --gc --minify --cleanDestinationDir -b https://bigfa.github.io/hugo-theme-puppy/ -t puppy - - - name: Deploy puppy Demo - uses: peaceiris/actions-gh-pages@v3.9.3 - with: - personal_token: ${{ secrets.PERSONAL_TOKEN }} - external_repository: bigfa/hugo-theme-puppy - publish_branch: gh-pages # default: gh-pages - publish_dir: ./public - commit_message: ${{ github.event.head_commit.message }} + input: "content/zh-cn/story/**" + index: "blog" + apikey: ${{ secrets.ALGOLIA_WRITE_KEY }} + appid: "CIU4I6RWD0" diff --git a/hugo.toml b/hugo.toml index 558e10d..8d8860d 100644 --- a/hugo.toml +++ b/hugo.toml @@ -43,8 +43,8 @@ theme = 'farallon' toc = true mainSections = ['story','memo'] indexName = '浪子' - searchKey = 'b0825b184f45c084e31770fbcc9261f2' - searchAPPID = 'FX1CAS2SD8' + searchKey = '6de51423d2ac6b29beb9a061737a85ca' + searchAPPID = 'CIU4I6RWD0' showAuthor = true authorName = '浪子' authorDescription = '层梦想仗剑走天涯'