added cleanMode script and fixed github workflow

This commit is contained in:
somrat sorkar
2023-06-26 14:12:20 +06:00
parent aa471f8846
commit 56959fd77a
5 changed files with 41 additions and 31 deletions

View File

@@ -53,11 +53,7 @@ jobs:
run: npm install
- name: Publish to GitHub Pages
run: |
cd exampleSite; \
hugo --gc --minify --baseURL "${{ steps.pages.outputs.base_url }}/" || \
hugo --themesDir ../.. --gc --minify --baseURL "${{ steps.pages.outputs.base_url }}/"
echo "SITE BUILT SUCCESSFULLY! LIVE AT: ${{ steps.pages.outputs.base_url }}"
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1