Skip to content

Commit 77cc5b6

Browse files
authored
ci: deploy on PR from dev to main (#7)
1 parent 5f39c46 commit 77cc5b6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/hugo.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
push:
77
branches:
88
- main
9+
pull_request:
10+
branches:
11+
- dev
912

1013
# Allows you to run this workflow manually from the Actions tab
1114
workflow_dispatch:
@@ -37,7 +40,7 @@ jobs:
3740
- name: Install Hugo CLI
3841
run: |
3942
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
40-
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
43+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
4144
- name: Install Dart Sass
4245
run: sudo snap install dart-sass
4346
- name: Checkout
@@ -53,13 +56,14 @@ jobs:
5356
- name: Build with Hugo
5457
env:
5558
# For maximum backward compatibility with Hugo modules
59+
TZ: "Europe/Lisbon"
5660
HUGO_ENVIRONMENT: production
5761
HUGO_ENV: production
5862
run: |
5963
hugo \
6064
--gc \
6165
--minify \
62-
--baseURL "${{ steps.pages.outputs.base_url }}/"
66+
--baseURL "${{ steps.pages.outputs.base_url }}/"
6367
- name: Upload artifact
6468
uses: actions/upload-pages-artifact@v3
6569
with:

0 commit comments

Comments
 (0)