Skip to content

Commit

Permalink
chore: Fix Deploy
Browse files Browse the repository at this point in the history
Signed-off-by: koooge <[email protected]>
  • Loading branch information
koooge committed Aug 16, 2024
1 parent fa2fb0e commit 9d2cdd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/deploy-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@ jobs:
hugo-version: '0.114.0'
extended: false
- name: Build
working-directory: ./exampleSite
run: |
export BASE_URL="https://koooge.github.io/hugo-theme-geppaku/"
hugo --gc --minify --themesDir ../ --layoutDir ../layouts --config config/test/config.toml --baseURL "${BASE_URL}"
hugo --gc --minify --configDir ./exampleSite/config exampleSite/config.toml --themesDir ./ --layoutDir ./layouts --config config/test/config.toml --baseURL "${BASE_URL}"
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./exampleSite/public
publish_dir: ./public
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/node_modules/
/public/
/exampleSite/public/
.hugo_build.lock

0 comments on commit 9d2cdd8

Please sign in to comment.