From 883c9ec553e3fcfb9067e2d75fd1f17c72b855bf Mon Sep 17 00:00:00 2001 From: Reorx Date: Thu, 14 Apr 2022 11:38:07 +0800 Subject: add exampleSite --- .github/workflows/gh-pages.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 7983817..4dff7d2 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -6,7 +6,6 @@ on: - "README.md" branches: - master - - exampleSite jobs: deploy: @@ -14,21 +13,18 @@ jobs: steps: - uses: actions/checkout@v3 with: - ref: exampleSite - submodules: true # Fetch Hugo themes (true OR recursive) - fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod + fetch-depth: 1 - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: hugo-version: '0.91.2' - # extended: true - name: Build - run: hugo -D --verbose --minify + run: cd exampleSite && hugo -D --verbose --minify - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./public + publish_dir: ./exampleSite/public -- cgit v1.2.3