summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/gh-pages.yml10
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