diff options
| author | Reorx <novoreorx@gmail.com> | 2022-04-14 11:38:07 +0800 |
|---|---|---|
| committer | Reorx <novoreorx@gmail.com> | 2022-04-14 11:38:07 +0800 |
| commit | 883c9ec553e3fcfb9067e2d75fd1f17c72b855bf (patch) | |
| tree | 157dd20286e88e827518c67bcb1ffbff95b28f2e /.github | |
| parent | 7880623a8d195abb0b500b17cbf8f3e62fd93fc7 (diff) | |
add exampleSite
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/gh-pages.yml | 10 |
1 files changed, 3 insertions, 7 deletions
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 |
