diff --git a/.github/workflows/hugo.yaml b/.github/workflows/hugo.yaml index 2e7445e..a8cf471 100644 --- a/.github/workflows/hugo.yaml +++ b/.github/workflows/hugo.yaml @@ -4,8 +4,7 @@ name: Deploy Hugo site to Pages on: # Runs on pushes targeting the default branch push: - branches: - - main + branches: ["main"] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -37,14 +36,13 @@ jobs: - name: Install Hugo CLI run: | wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ - && sudo dpkg -i ${{ runner.temp }}/hugo.deb + && sudo dpkg -i ${{ runner.temp }}/hugo.deb - name: Install Dart Sass run: sudo snap install dart-sass - name: Checkout uses: actions/checkout@v4 with: submodules: recursive - fetch-depth: 0 - name: Setup Pages id: pages uses: actions/configure-pages@v5 @@ -54,12 +52,10 @@ jobs: env: HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache HUGO_ENVIRONMENT: production - TZ: America/Los_Angeles run: | hugo \ - --gc \ --minify \ - --baseURL "${{ steps.pages.outputs.base_url }}/" + --baseURL "${{ steps.pages.outputs.base_url }}/" - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: @@ -76,4 +72,3 @@ jobs: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 -