diff --git a/.github/workflows/hugo.yaml b/.github/workflows/hugo.yaml index b0004fb..39e58a8 100644 --- a/.github/workflows/hugo.yaml +++ b/.github/workflows/hugo.yaml @@ -6,6 +6,9 @@ on: push: branches: - main + pull_request: + branches: + - dev # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -37,7 +40,7 @@ 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 @@ -53,13 +56,14 @@ jobs: - name: Build with Hugo env: # For maximum backward compatibility with Hugo modules + TZ: "Europe/Lisbon" HUGO_ENVIRONMENT: production HUGO_ENV: production 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: