File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ name: Deploy Hugo site to Pages
44on :
55 # Runs on pushes targeting the default branch
66 push :
7- branches : ["main"]
7+ branches :
8+ - main
89
910 # Allows you to run this workflow manually from the Actions tab
1011 workflow_dispatch :
@@ -36,13 +37,14 @@ jobs:
3637 - name : Install Hugo CLI
3738 run : |
3839 wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
39- && sudo dpkg -i ${{ runner.temp }}/hugo.deb
40+ && sudo dpkg -i ${{ runner.temp }}/hugo.deb
4041 - name : Install Dart Sass
4142 run : sudo snap install dart-sass
4243 - name : Checkout
4344 uses : actions/checkout@v4
4445 with :
4546 submodules : recursive
47+ fetch-depth : 0
4648 - name : Setup Pages
4749 id : pages
4850 uses : actions/configure-pages@v5
5557 HUGO_ENV : production
5658 run : |
5759 hugo \
60+ --gc \
5861 --minify \
59- --baseURL "${{ steps.pages.outputs.base_url }}/"
62+ --baseURL "${{ steps.pages.outputs.base_url }}/"
6063 - name : Upload artifact
6164 uses : actions/upload-pages-artifact@v3
6265 with :
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments